import { Form, Head } from '@inertiajs/react'; import InputError from '@/components/input-error'; import PasswordInput from '@/components/password-input'; import TextLink from '@/components/text-link'; import { Button } from '@/components/ui/button'; import { Input } from '@/components/ui/input'; import { Label } from '@/components/ui/label'; import { Spinner } from '@/components/ui/spinner'; import { useTranslation } from '@/lib/translations'; import { login } from '@/routes'; import { store } from '@/routes/register'; type Props = { passwordRules: string; }; export default function Register({ passwordRules }: Props) { const { t } = useTranslation(); return ( <>
{({ processing, errors }) => ( <>
{t('Already have an account?')}{' '} {t('Log in')}
)}
); } Register.layout = { title: 'Create an account', description: 'Enter your details below to create your account', };