"use client"; import { useRouter } from "next/navigation"; import DeletePlan from "@/components/DeletePlan"; import { articlesHref } from "@/lib/hrefs"; // "Delete article" on an article of the store (release 27 follow-up): the // plan, then the registry's delete (POST /api/articles/delete); done, back to // the articles on Work, which says what went. export default function DeleteArticle({ article, published }: { article: string; published: boolean }) { const router = useRouter(); return ( router.push(articlesHref({ deleted: article, freed: String(a.plan.bytes) }))} /> ); }