"use client"; import { useRouter } from "next/navigation"; import DeletePlan from "@/components/DeletePlan"; import { workHref } from "@/lib/hrefs"; // "Delete project" (release 27 follow-up): the plan, then the delete (POST // /api/projects/delete, lib/report/delete.mjs); done, back to the projects. export default function DeleteProject({ project }: { project: string }) { const router = useRouter(); return ( router.push(workHref({ deleted: project }))} /> ); }