feat(about): 添加关于页面的多个子页面内容

This commit is contained in:
2025-11-21 16:10:43 +08:00
parent bdc7ff6988
commit 64ad7a9cce
13 changed files with 260 additions and 31 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: [] }),
}));