import { create } from "zustand"; interface Mission { id: string; name: string; } interface MissionStore { missions: Mission[]; setMissions: (missions: Mission[]) => void; } export const missionsStore = create((set) => ({ missions: [], setMissions: (missions) => set({ missions }), }));