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 }),
|
||||
}));
|
||||
Reference in New Issue
Block a user