import { create } from "zustand"; export type SectionItem = { id: string; name: string }; type SectionStore = { sections: SectionItem[]; setSections: (items: SectionItem[]) => void; clear: () => void; }; export const useSectionStore = create((set) => ({ sections: [], setSections: (items) => set({ sections: items }), clear: () => set({ sections: [] }), }));