import { Form, Head, usePage } from '@inertiajs/react'; /* @chisel-email-verification */ import { Link } from '@inertiajs/react'; /* @end-chisel-email-verification */ import ProfileController from '@/actions/App/Http/Controllers/Settings/ProfileController'; import DeleteUser from '@/components/delete-user'; import Heading from '@/components/heading'; import InputError from '@/components/input-error'; import { Button } from '@/components/ui/button'; import { Input } from '@/components/ui/input'; import { Label } from '@/components/ui/label'; import { edit } from '@/routes/profile'; import type { Auth } from '@/types'; /* @chisel-email-verification */ import { send } from '@/routes/verification'; /* @end-chisel-email-verification */ type PageProps = { auth: Auth; }; export default function Profile( /* @chisel-email-verification */ { mustVerifyEmail, status, }: { mustVerifyEmail: boolean; status?: string; }, /* @end-chisel-email-verification */ ) { const { auth } = usePage().props; return ( <>

Profile settings

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

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

{status === 'verification-link-sent' && (
A new verification link has been sent to your email address.
)}
)} {/* @end-chisel-email-verification */}
)}
); } Profile.layout = { breadcrumbs: [ { title: 'Profile settings', href: edit(), }, ], };