Add React web scaffold
This commit is contained in:
1 parent
393779f81d
commit
62f45ed454
17 files changed
+452
No files matched your search
@@ -0,0 +1,12 @@
|
||||
import { create } from 'zustand';
|
||||
|
||||
type UiState = {
|
||||
dashboardCompact: boolean;
|
||||
toggleDashboardCompact: () => void;
|
||||
};
|
||||
|
||||
export const useUiStore = create<UiState>((set) => ({
|
||||
dashboardCompact: false,
|
||||
toggleDashboardCompact: () =>
|
||||
set((state) => ({ dashboardCompact: !state.dashboardCompact })),
|
||||
}));
|
||||
Reference in new issue
Block a user