Gets current theme settings from both system and localStorage
Promise resolving to object with system theme and local preference
export async function getCurrentTheme(): Promise<ThemePreferences> { const currentTheme = await window.themeMode.current(); const localTheme = localStorage.getItem(THEME_KEY) as ThemeMode | null; return { system: currentTheme, local: localTheme, };} Copy
export async function getCurrentTheme(): Promise<ThemePreferences> { const currentTheme = await window.themeMode.current(); const localTheme = localStorage.getItem(THEME_KEY) as ThemeMode | null; return { system: currentTheme, local: localTheme, };}
Gets current theme settings from both system and localStorage