13 lines
361 B
TypeScript
13 lines
361 B
TypeScript
import { CabinetSection } from '@/widgets/cabinet/lib/types';
|
|
import { create } from 'zustand';
|
|
|
|
type CabinetNavZustand = {
|
|
navItem: CabinetSection;
|
|
setNavItem: (item: CabinetSection) => void;
|
|
};
|
|
|
|
export const useCabinetNav = create<CabinetNavZustand>((set) => ({
|
|
navItem: 'dashboard',
|
|
setNavItem: (item: CabinetSection) => set({ navItem: item }),
|
|
}));
|