• useThemeProvider is a custom hook that provides the current theme and a function to update it. It fetches the user settings to determine the initial theme and updates the user's theme preference.

    Returns {
        theme: Theme;
        updateTheme: ((theme) => Promise<void>);
    }

    An object containing the current theme and a function to update the theme.

    • theme: Theme
    • updateTheme: ((theme) => Promise<void>)
        • (theme): Promise<void>
        • Parameters

          • theme: Theme

          Returns Promise<void>

Generated using TypeDoc