import { Form, Head, Link, usePage } from '@inertiajs/react'; 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 { send } from '@/routes/verification'; export default function Profile({ mustVerifyEmail, status, }: { mustVerifyEmail: boolean; status?: string; }) { const { auth } = usePage().props; const user = auth.user; if (!user) { return null; } return ( <>

Profile settings

{({ processing, errors }) => ( <>
{mustVerifyEmail && user.email_verified_at === null && (

Your email address is unverified.{' '} Click here to resend the verification email.

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