import { Transition } from '@headlessui/react'; import { Form, Head, Link, usePage } from '@inertiajs/react'; import ProfileController from '@/actions/App/Http/Controllers/Settings/ProfileController'; import { DeleteUser } from '@/common/DeleteUser'; import { HeadingSmall } from '@/common/HeadingSmall'; import { InputError } from '@/common/InputError'; import { type BreadcrumbItem, type SharedData } from '@/common/types'; import AppLayout from '@/pages/layouts/AppLayout'; import SettingsLayout from '@/pages/layouts/settings/layout'; import { edit } from '@/routes/profile'; import { send } from '@/routes/verification'; import { Button } from '@/shadcn/button'; import { Input } from '@/shadcn/input'; import { Label } from '@/shadcn/label'; const breadcrumbs: BreadcrumbItem[] = [ { title: 'Profile settings', href: edit().url, }, ]; export default function ProfilePage({ mustVerifyEmail, status }: { mustVerifyEmail: boolean; status?: string }) { const { auth } = usePage().props; return (
{({ processing, recentlySuccessful, errors }) => ( <>
{mustVerifyEmail && auth.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.
)}
)}

Saved

)}
); }