| 2 | import { Project } from '@/types'; |
| 3 | |
| 4 | interface 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 | |
| 13 | export const useProjectStore = create<ProjectState>((set) => ({ |
| 14 | projects: [], |
nothing calls this directly
no outgoing calls
no test coverage detected