Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
17 lines
445 B
Plaintext
17 lines
445 B
Plaintext
export declare enum ThemeMode {
|
|
LIGHT = "light",
|
|
DARK = "dark",
|
|
SYSTEM = "system"
|
|
}
|
|
export type ThemeModeType = `${ThemeMode}`;
|
|
export type ThemeType = 'light' | 'dark';
|
|
type Options = {
|
|
localStorageKey?: string;
|
|
};
|
|
export default function useTheme(options?: Options): {
|
|
theme: ThemeType;
|
|
themeMode: "dark" | "light" | "system";
|
|
setThemeMode: (this: unknown, mode: "dark" | "light" | "system") => void;
|
|
};
|
|
export {};
|