fix base_api error

This commit is contained in:
nabijonovdavronbek619@gmail.com
2026-04-10 16:53:29 +05:00
parent 553db7194a
commit b4fd590eda
9 changed files with 151 additions and 58 deletions

View 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' }),
}));