{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "state-unauthorized",
  "type": "registry:component",
  "title": "State Unauthorized",
  "description": "Canonical unauthorized state for auth-gated plugin pages.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "alert"
  ],
  "files": [
    {
      "path": "registry/blocks/state/state-unauthorized.tsx",
      "content": "\"use client\";\n// astro-ui-m8-skin-version: 1.5.3 (A-C6 — run `npx astro-ui-m8-skin-lock` to compare against your installed @mano8/astro-ui-m8)\n\nimport * as React from \"react\";\nimport { ShieldAlert } from \"lucide-react\";\n\nimport { Alert, AlertDescription, AlertTitle } from \"@/components/ui/alert\";\n\nexport interface StateUnauthorizedProps {\n  title?: string;\n  description?: string;\n  action?: React.ReactNode;\n}\n\nexport function StateUnauthorized({\n  title = \"Access required\",\n  description = \"Sign in with an account that has permission to view this page.\",\n  action,\n}: StateUnauthorizedProps) {\n  return (\n    <Alert>\n      <ShieldAlert className=\"size-4\" aria-hidden=\"true\" />\n      <AlertTitle>{title}</AlertTitle>\n      <AlertDescription>\n        <div className=\"space-y-3\">\n          <p>{description}</p>\n          {action ? <div className=\"flex flex-wrap gap-2\">{action}</div> : null}\n        </div>\n      </AlertDescription>\n    </Alert>\n  );\n}\n\n",
      "type": "registry:component",
      "target": "components/m8-ui/state-unauthorized.tsx"
    }
  ]
}
