gonets/FRONT/BUILD/resources/app/src/store/groupStore.ts

13 lines
308 B
TypeScript
Raw Normal View History

import {create} from 'zustand';
interface GroupState {
groups: { id: string; click: boolean }[];
setGroups: (groups: { id: string; click: boolean }[]) => void;
}
const useGroupStore = create<GroupState>((set) => ({
groups: [],
setGroups: (groups) => set({ groups }),
}));
export { useGroupStore };