UNPKG

@ucam/design-system

Version:
19 lines (18 loc) 476 B
import { Theme } from '@material-ui/core/styles'; export declare type ThemeRegister = [ /** * The currently registered themes */ Map<string, Theme>, /** * Update the currently registered themes. */ (themes: { [name: string]: Theme; }) => void ]; /** * A hook to get and update the registered themes. * Must be used inside a `<ThemeProvider />` */ export declare const useThemeRegister: () => ThemeRegister;