@firecms/core
Version:
Awesome Firebase/Firestore-based headless open-source CMS
20 lines (19 loc) • 525 B
TypeScript
/**
* Use this controller to change color mode
* @group Hooks and utilities
*/
export interface ModeController {
mode: "light" | "dark";
setMode: (mode: "light" | "dark" | "system") => void;
}
/**
* Hook to retrieve the current mode ("light" | "dark"), and `setMode`
* or `toggle` functions to change it.
*
* Consider that in order to use this hook you need to have a parent
* `FireCMS`
*
* @see ModeController
* @group Hooks and utilities
*/
export declare const useModeController: () => ModeController;