refactor(FE-316): Add expanded drawer content and dynamic width

This commit is contained in:
rstubryan
2025-12-26 22:50:41 +07:00
parent e0ee846106
commit 800739bd4f
5 changed files with 39 additions and 7 deletions
+5
View File
@@ -1,5 +1,6 @@
import { DrawerUISlice } from '@/types/stores';
import { StateCreator } from 'zustand';
import { ReactNode } from 'react';
export const createDrawerUISlice: StateCreator<
DrawerUISlice,
@@ -44,4 +45,8 @@ export const createDrawerUISlice: StateCreator<
const current = get().expandedDrawerOpen;
set({ expandedDrawerOpen: !current });
},
expandedDrawerContent: null as ReactNode | null,
setExpandedDrawerContent: (content: ReactNode) =>
set({ expandedDrawerContent: content }),
});