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