Files
var-monorepo/apps/dispatch/app/_store/missionsStore.ts
2025-03-25 00:19:08 -07:00

17 lines
310 B
TypeScript

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