MCPcopy Index your code
hub / github.com/enowdev/enowX-Coder / ProjectState

Interface ProjectState

src/stores/useProjectStore.ts:4–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2import { Project } from '@/types';
3
4interface ProjectState {
5 projects: Project[];
6 activeProjectId: string | null;
7 setProjects: (projects: Project[]) => void;
8 setActiveProjectId: (id: string | null) => void;
9 addProject: (project: Project) => void;
10 removeProject: (id: string) => void;
11}
12
13export const useProjectStore = create<ProjectState>((set) => ({
14 projects: [],

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected