Files
paseo/packages/app/src/hooks/use-open-add-project.ts
T
Mohamed Boudra 943d03ad99 fix(projects): separate registration from workspace setup
Adding or cloning a project now registers it and opens workspace setup
instead of creating a workspace implicitly. Keep Add Project independently
mounted from Search so closing one cannot control the other.
2026-07-15 23:13:55 +02:00

6 lines
207 B
TypeScript

import { useAddProjectFlowStore } from "@/stores/add-project-flow-store";
export function useOpenAddProject(): (preferredHostId?: string) => void {
return useAddProjectFlowStore((state) => state.open);
}