import { Trash2, TriangleAlert } from "lucide-react"; import { Button } from "@/client/components/ui/button"; export type DangerZoneCardProps = { defaultBranch: string; packList: string[]; pending: Record; purgeRepo: () => Promise; }; export function DangerZoneCard({ defaultBranch, packList, pending, purgeRepo, }: DangerZoneCardProps) { return (
Warning: These actions cannot be undone. All repository data will be permanently deleted.

This will delete all objects, packs, references, and metadata associated with this repository. The repository will be removed from the owner registry.

Default branch: {defaultBranch}

{packList.length ? (

Visible pack keys: {packList.length}

) : null}
); }