import { writable } from 'svelte/store' import type { Writable } from 'svelte/store' import type FileSystem from 'webnative/fs/index' import { loadTheme } from '$lib/theme' import { AREAS } from '$lib/gallery' import type { Gallery } from '$lib/gallery' import type { Notification } from '$lib/notifications' import type { Session } from '$lib/session' import type { Theme } from '$lib/theme' export const themeStore: Writable = writable(loadTheme()) export const sessionStore: Writable = writable({ username: null, authed: false, loading: true, backupCreated: null }) export const filesystemStore: Writable = writable(null) export const galleryStore: Writable = writable({ loading: true, publicImages: [], privateImages: [], selectedArea: AREAS.PUBLIC, }) export const notificationStore: Writable = writable([])