Files
Lazuli/src/lib/stores.ts

12 lines
546 B
TypeScript
Raw Normal View History

2024-01-25 03:05:13 -05:00
import { writable, type Writable } from 'svelte/store'
import type { AlertType } from '$lib/components/util/alert.svelte'
2024-01-27 01:38:04 -05:00
export const pageWidth: Writable<number> = writable()
2024-01-27 01:38:04 -05:00
export const newestAlert: Writable<[AlertType, string]> = writable()
export const currentlyPlaying: Writable<Song | null> = writable()
const youtubeMusicBackground: string = 'https://www.gstatic.com/youtube/media/ytm/images/sbg/wsbg@4000x2250.png' // Default Youtube music background
export const backgroundImage: Writable<string> = writable(youtubeMusicBackground)