mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 20:37:21 +00:00
public commit
This commit is contained in:
8
app/src/ui/client/use-theme.ts
Normal file
8
app/src/ui/client/use-theme.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { useBknd } from "ui";
|
||||
|
||||
export function useTheme(): { theme: "light" | "dark" } {
|
||||
const b = useBknd();
|
||||
const theme = b.app.getAdminConfig().color_scheme as any;
|
||||
|
||||
return { theme };
|
||||
}
|
||||
Reference in New Issue
Block a user