fix base_api error
This commit is contained in:
12
src/shared/zustand/cabinetNav.ts
Normal file
12
src/shared/zustand/cabinetNav.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { CabinetSection } from '@/widgets/cabinet/lib/types';
|
||||
import { create } from 'zustand';
|
||||
|
||||
type CabinetNavZustand = {
|
||||
navItem: CabinetSection;
|
||||
setNavItem: (item: string) => void;
|
||||
};
|
||||
|
||||
export const useCabinetNav = create<CabinetNavZustand>((set) => ({
|
||||
navItem: 'dashboard',
|
||||
setNavItem: (item: string) => set({ navItem: item || 'dash' }),
|
||||
}));
|
||||
Reference in New Issue
Block a user