{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "delete-account-01",
  "title": "Delete Account",
  "author": "VenusUI",
  "description": "Account deletion where shredding the page is the final confirmation.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "https://venusui.com/r/paper-shredder.json"
  ],
  "files": [
    {
      "path": "registry/default/blocks/delete-account-01/components/delete-account-01.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { AlertTriangle } from \"lucide-react\"\n\nimport { PaperShredder } from \"@/registry/default/ui/paper-shredder\"\n\nconst GOING = [\"Your profile and email address\", \"18 saved projects and their history\", \"Billing details and invoices\", \"Team memberships and invitations\"]\n\n/**\n * Account deletion with a shredder: the page lists what will go, and shredding\n * it is the confirmation. Run your real deletion where `onShred` fires.\n */\nexport function DeleteAccount01() {\n  const [confirm, setConfirm] = React.useState(\"\")\n  const [deleted, setDeleted] = React.useState(false)\n  const ready = confirm.trim().toLowerCase() === \"delete my account\"\n\n  return (\n    <section aria-labelledby=\"delete-account-01-title\" className=\"py-24 sm:py-28\">\n      <div className=\"mx-auto grid max-w-5xl grid-cols-[minmax(0,1fr)] items-start gap-12 px-4 sm:px-6 lg:grid-cols-[minmax(0,1fr)_auto]\">\n        <div className=\"max-w-lg\">\n          <p className=\"inline-flex items-center gap-1.5 text-sm font-medium text-destructive\">\n            <AlertTriangle aria-hidden=\"true\" className=\"size-4\" />\n            Danger zone\n          </p>\n          <h2 id=\"delete-account-01-title\" className=\"mt-2 text-3xl font-semibold tracking-tight sm:text-4xl\">\n            Delete your account\n          </h2>\n          <p className=\"mt-3 leading-7 text-muted-foreground\">This can’t be undone. Everything on the page goes in the shredder:</p>\n          <ul className=\"mt-4 list-disc space-y-1.5 pl-5 text-sm\">\n            {GOING.map((item) => (\n              <li key={item}>{item}</li>\n            ))}\n          </ul>\n          <label className=\"mt-8 block text-sm font-medium\" htmlFor=\"delete-account-01-confirm\">\n            Type <span className=\"font-mono\">delete my account</span> to unlock the shredder\n          </label>\n          <input\n            id=\"delete-account-01-confirm\"\n            value={confirm}\n            onChange={(event) => setConfirm(event.target.value)}\n            disabled={deleted}\n            autoComplete=\"off\"\n            className=\"mt-2 h-10 w-full max-w-sm rounded-md border bg-background px-3 text-sm outline-none focus-visible:ring-3 focus-visible:ring-ring/50 disabled:opacity-60\"\n          />\n          <p role=\"status\" className=\"mt-4 min-h-6 text-sm font-medium\">\n            {deleted ? \"Your account is scheduled for deletion. We’ll email you a receipt.\" : ready ? \"Unlocked. Press Shred.\" : \"\"}\n          </p>\n        </div>\n        <div className={ready || deleted ? \"\" : \"opacity-50 grayscale\"} inert={!ready && !deleted}>\n          <PaperShredder onShred={() => setDeleted(true)} className=\"mx-auto\">\n            <p className=\"font-semibold text-neutral-900\">Account: priya@example.com</p>\n            {GOING.map((item) => (\n              <p key={item} className=\"mt-2\">\n                {item}\n              </p>\n            ))}\n          </PaperShredder>\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "version": "0.1.0"
  },
  "categories": [
    "auth"
  ],
  "type": "registry:block"
}