import { Head, Link, useForm } from '@inertiajs/react';
import { FormErrors, controlClass } from '@/components/procurement';
import { Button } from '@/components/ui/button';
export default function Entry({
company,
portal,
opportunities = { data: [], prev_page_url: null, next_page_url: null },
}: {
company: { id: number; name: string };
portal: { version: number; registration_open: boolean; notice: string };
opportunities?: {
data: {
id: number;
title: string;
kind: string;
closes_on: string;
description: string;
}[];
prev_page_url: string | null;
next_page_url: string | null;
};
}) {
const login = useForm({
email: '',
password: '',
opportunity_id: null as number | null,
});
const register = useForm({
email: '',
password: '',
password_confirmation: '',
portal_version: portal.version,
notice_acknowledged: false,
opportunity_id: null as number | null,
});
const credentials = (form: typeof login, prefix: string) => (
<>
>
);
return (
<>