Added side Pannel
This commit is contained in:
16
apps/dispatch/app/_store/missionsStore.ts
Normal file
16
apps/dispatch/app/_store/missionsStore.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { create } from "zustand";
|
||||
|
||||
interface Mission {
|
||||
id: string;
|
||||
name: string;
|
||||
}
|
||||
|
||||
interface MissionStore {
|
||||
missions: Mission[];
|
||||
setMissions: (missions: Mission[]) => void;
|
||||
}
|
||||
|
||||
export const missionsStore = create<MissionStore>((set) => ({
|
||||
missions: [],
|
||||
setMissions: (missions) => set({ missions }),
|
||||
}));
|
||||
11
apps/dispatch/app/_store/pannelStore.ts
Normal file
11
apps/dispatch/app/_store/pannelStore.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { create } from "zustand";
|
||||
|
||||
interface PannelStore {
|
||||
isOpen: boolean;
|
||||
setOpen: (isOpen: boolean) => void;
|
||||
}
|
||||
|
||||
export const usePannelStore = create<PannelStore>((set) => ({
|
||||
isOpen: true,
|
||||
setOpen: (isOpen) => set({ isOpen }),
|
||||
}));
|
||||
Reference in New Issue
Block a user