{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "settings-profile-page", "dependencies": [ "@inertiajs/react" ], "registryDependencies": [ "@craft/app-layout", "@craft/settings-layout", "@craft/delete-user", "@craft/form-errors", "@craft/heading", "@craft/input-error", "@craft/craft-types", "button", "input", "label" ], "files": [ { "path": "registry/new-york-v4/pages/settings/profile.tsx", "content": "import { Form, Head, usePage } from \"@inertiajs/react\";\n/* @chisel-email-verification */\nimport { Link } from \"@inertiajs/react\";\n/* @end-chisel-email-verification */\nimport ProfileController from \"@/actions/App/Http/Controllers/Settings/ProfileController\";\nimport DeleteUser from \"@/components/delete-user\";\nimport Heading from \"@/components/heading\";\nimport InputError from \"@/components/input-error\";\nimport { Button } from \"@/components/ui/button\";\nimport { toastFirstFormError } from \"@/lib/form-errors\";\nimport { Input } from \"@/components/ui/input\";\nimport { Label } from \"@/components/ui/label\";\nimport type { Auth } from \"@/lib/types\";\n/* @chisel-email-verification */\nimport { send } from \"@/routes/verification\";\n/* @end-chisel-email-verification */\n\ntype PageProps = {\n auth: Auth & {\n user: NonNullable;\n };\n};\n\nexport default function Profile(\n /* @chisel-email-verification */\n {\n mustVerifyEmail,\n status,\n }: {\n mustVerifyEmail: boolean;\n status?: string;\n },\n /* @end-chisel-email-verification */\n) {\n const { auth } = usePage().props;\n\n return (\n <>\n \n\n

Profile settings

\n\n
\n \n\n \n {({ processing, errors }) => (\n <>\n
\n \n\n \n\n \n
\n\n
\n \n\n \n\n \n
\n\n {/* @chisel-email-verification */}\n {mustVerifyEmail && auth.user.email_verified_at === null && (\n
\n

\n Your email address is unverified.{\" \"}\n \n Click here to re-send the verification email.\n \n

\n\n {status === \"verification-link-sent\" && (\n
\n A new verification link has been sent to your email\n address.\n
\n )}\n
\n )}\n {/* @end-chisel-email-verification */}\n\n
\n \n
\n \n )}\n \n
\n\n \n \n );\n}\n\nProfile.layout = {\n breadcrumbs: [\n {\n title: \"Profile settings\",\n href: ProfileController.edit(),\n },\n ],\n};\n", "type": "registry:file", "target": "resources/js/pages/settings/profile.tsx" } ], "type": "registry:block" }