import { Form, Head, Link } from '@inertiajs/react';
import { Cloud, Server } from 'lucide-react';
import { useState } from 'react';
import InputError from '@/components/input-error';
import PasswordInput from '@/components/password-input';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import { Label } from '@/components/ui/label';
import { Spinner } from '@/components/ui/spinner';
type Deployment = 'managed_cloud' | 'self_hosted';
export default function Register({ passwordRules }: { passwordRules: string }) {
const [deployment, setDeployment] = useState