{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "server-error-state",
  "type": "registry:ui",
  "title": "Server error state",
  "description": "500 error state card with a danger outline, a short explanation, and Retry and Copy request id buttons so users can recover or reach support with context.",
  "dependencies": [],
  "registryDependencies": [
    "https://ui.minidev.pro/r/button.json",
    "utils"
  ],
  "files": [
    {
      "path": "registry/ui/server-error-state.tsx",
      "type": "registry:ui",
      "target": "components/ui/server-error-state.tsx",
      "content": "\"use client\"\nimport { Button } from \"@/components/ui/button\"\nimport { cn } from \"@/lib/utils\"\n\nfunction ServerErrorState({ className }: { className?: string }) {\n  return (\n    <div data-slot=\"server-error-state\" className={cn(\"rounded-2xl border border-danger/30 bg-surface p-6 shadow-highlight\", className)}>\n      <p className=\"font-mono text-xs text-danger\">500</p>\n      <h3 className=\"mt-2 text-lg font-medium tracking-[-0.014em] text-fg\">Something broke on our side</h3>\n      <p className=\"mt-2 text-sm text-fg-muted\">The audit worker or registry API failed. Retry, or copy the request id for support.</p>\n      <div className=\"mt-4 flex flex-wrap gap-2\">\n        <Button size=\"sm\">Retry</Button>\n        <Button size=\"sm\" variant=\"outline\">Copy request id</Button>\n      </div>\n    </div>\n  )\n}\nexport { ServerErrorState }\n"
    }
  ]
}
