This commit is contained in:
砂糖
2026-01-24 16:54:44 +08:00
commit 70f337bb92
186 changed files with 23792 additions and 0 deletions

15
stores/sectionStore.ts Normal file
View File

@@ -0,0 +1,15 @@
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<SectionStore>((set) => ({
sections: [],
setSections: (items) => set({ sections: items }),
clear: () => set({ sections: [] }),
}));