Files
userbase/app/src/ui/client/use-theme.ts
T
2024-11-16 12:01:47 +01:00

9 lines
198 B
TypeScript

import { useBknd } from "ui";
export function useTheme(): { theme: "light" | "dark" } {
const b = useBknd();
const theme = b.app.getAdminConfig().color_scheme as any;
return { theme };
}