Interface representing the state of the ThemeProvider component.

interface ThemeProviderState {
    setTheme: ((theme) => void);
    theme: Theme;
}

Properties

Properties

setTheme: ((theme) => void)

Function to update the theme.

Type declaration

    • (theme): void
    • Parameters

      Returns void

theme: Theme

The current theme.