• Gets the current theme preferences from the system and local storage.

    Returns Promise<ThemePreferences>

    An object containing the system and local theme preferences.

    export async function getCurrentTheme(): Promise<ThemePreferences> {
    const currentTheme = await window.themeMode.current();
    const localTheme = storage.getItem(THEME_KEY) as ThemeMode | null;

    return {
    system: currentTheme,
    local: localTheme,
    };
    }