• Gets current theme settings from both system and localStorage

    Returns Promise<ThemePreferences>

    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,
    };
    }