builder / lib /stores /workspace.ts
Leon4gr45's picture
Upload folder using huggingface_hub (part 3)
94193b5 verified
Raw
History Blame Contribute Delete
498 Bytes
import { create } from 'zustand';
import { createOrchestratorSlice, OrchestratorSlice } from './slices/orchestrator';
import { createProjectSlice, ProjectSlice } from './slices/project';
import { createLayoutSlice, LayoutSlice } from './slices/layout';
type WorkspaceState = OrchestratorSlice & ProjectSlice & LayoutSlice;
export const useWorkspaceStore = create<WorkspaceState>()((...a) => ({
...createOrchestratorSlice(...a),
...createProjectSlice(...a),
...createLayoutSlice(...a),
}));