Инициализация в новом репозитории
This commit is contained in:
commit
eb1f18f53e
374 changed files with 226678 additions and 0 deletions
13
FRONT/BUILD/resources/app/src/store/groupStore.ts
Normal file
13
FRONT/BUILD/resources/app/src/store/groupStore.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
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 };
|
||||
Loading…
Add table
Add a link
Reference in a new issue