import ProfileController from '@/actions/App/Http/Controllers/Settings/ProfileController'; import { send } from '@/routes/verification'; import { type BreadcrumbItem, type SharedData } from '@/types'; import { Transition } from '@headlessui/react'; import { Form, Head, Link, usePage } from '@inertiajs/react'; import DeleteUser from '@/components/delete-user'; import HeadingSmall from '@/components/heading-small'; 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 AppLayout from '@/layouts/app-layout'; import SettingsLayout from '@/layouts/settings/layout'; import { edit } from '@/routes/profile'; const breadcrumbs: BreadcrumbItem[] = [ { title: 'Profile settings', href: edit().url, }, ]; export default function Profile({ 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

)}
); }