Interface for the current theme in the theme context.
interface ThemeContextType {
theme: ThemeState;
updateTheme: (palette: PaletteState) => Promise<void>;
updateThemeFromMaster: (
hexCode: string,
setPalette: React.Dispatch<React.SetStateAction<PaletteState>>,
) => Promise<void>;
palette: PaletteState;
setPalette: React.Dispatch<React.SetStateAction<PaletteState>>;
//todo: why are these here?
navIsOpen: boolean;
setNavIsOpen: React.Dispatch<React.SetStateAction<boolean>>;
}
Components that use this type.
Types with similar roles.