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.
6 lines
207 B
TypeScript
6 lines
207 B
TypeScript
import { useAddProjectFlowStore } from "@/stores/add-project-flow-store";
|
|
|
|
export function useOpenAddProject(): (preferredHostId?: string) => void {
|
|
return useAddProjectFlowStore((state) => state.open);
|
|
}
|