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('managed_cloud'); const [plan, setPlan] = useState('cloud_free'); return ( <>
{({ processing, errors }) => ( <>
{( [ [ 'managed_cloud', Cloud, 'Cloud RADIQ', 'Langsung gunakan aplikasi tanpa mengelola server.', ], [ 'self_hosted', Server, 'Install Local', 'Jalankan di VPS, server, atau komputer sendiri.', ], ] as const ).map(([value, Icon, title, description]) => ( ))}
{deployment === 'self_hosted' && (
)}

{passwordRules}

Sudah terdaftar?{' '} Login

)}
); } Register.layout = { title: 'Daftarkan Tenant RADIQ NDM', description: 'Pilih Cloud RADIQ atau instalasi di server milik Anda.', };