{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "error-500-page", "title": "500 Error Page", "description": "500 server error page with large headline, message, search form, and dashboard link.", "registryDependencies": [ "https://raw.githubusercontent.com/dnachavez/adminlte-next/master/public/r/adminlte-theme.json", "https://raw.githubusercontent.com/dnachavez/adminlte-next/master/public/r/adminlte-form-control.json" ], "files": [ { "path": "registry/new-york/error-500-page/blocks/error-500-page.tsx", "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { cn } from \"@/registry/new-york/adminlte-theme/lib/cn\"\n\ninterface Error500PageProps extends React.HTMLAttributes {\n headline?: string\n message?: string\n searchPlaceholder?: string\n onSearch?: (query: string) => void\n homeHref?: string\n}\n\nfunction Error500Page({\n className,\n headline = \"500\",\n message = \"Something went wrong.\",\n searchPlaceholder = \"Search\",\n onSearch,\n homeHref = \"/\",\n ...props\n}: Error500PageProps) {\n const [query, setQuery] = React.useState(\"\")\n\n return (\n \n
\n
\n

\n {headline}\n

\n\n

\n {message}\n

\n\n

\n We will work on fixing that right away. Meanwhile, you may{\" \"}\n \n return to dashboard\n \n .\n

\n\n {\n e.preventDefault()\n onSearch?.(query)\n }}\n >\n
\n setQuery(e.target.value)}\n />\n \n 🔍\n \n
\n \n
\n
\n \n )\n}\n\nexport { Error500Page }\nexport type { Error500PageProps }\n", "type": "registry:component" } ], "type": "registry:block" }