{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "alert-error", "dependencies": [], "registryDependencies": [ "@craft/alert", "@craft/use-error-toast" ], "files": [ { "path": "registry/new-york-v4/components/alert-error.tsx", "content": "import { AlertCircleIcon } from \"lucide-react\";\nimport { Alert, AlertDescription, AlertTitle } from \"@/components/ui/alert\";\nimport { useErrorToast } from \"@/hooks/use-error-toast\";\n\nexport default function AlertError({ errors, title }: { errors: string[]; title?: string }) {\n useErrorToast(errors);\n\n return (\n \n \n {title || \"Something went wrong.\"}\n \n
    \n {Array.from(new Set(errors)).map((error, index) => (\n
  • {error}
  • \n ))}\n
\n
\n
\n );\n}\n", "type": "registry:component" } ], "type": "registry:component" }