// Application-wide UI state store
// TRACES: UR-005 | DR-005, DR-009
import { writable } from 'svelte/store';

// App-wide state (root layout)
export const isInitialized = writable(false);
export const pendingSyncCount = writable(0);
export const isAndroid = writable(false);
// Shuffle/repeat/next/previous state now lives in the event-driven queue store
// ($lib/stores/queue), the single source of truth.
export const showSleepTimerModal = writable(false);

// Library-specific state
export const librarySearchQuery = writable("");
export const libraryShowFullPlayer = writable(false);
export const libraryShowOverflowMenu = writable(false);
export const libraryShowSleepTimerModal = writable(false);
