Ananto30/ask-hadith

View on GitHub
web/src/store.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { writable } from 'svelte/store';
import type { CollectionCounter, HadithModel } from './models';

export const searchKey = writable<string>('');
export const selectedCollection = writable<string>('');
export const firstHadithBase64 = writable<string>('');

export const collectionsSorted = writable<CollectionCounter[]>([]);
export const hadithsByCollection = writable<Map<string, HadithModel[]>>(new Map());