import { useState, type FormEvent } from "react"; type LoginPageProps = { busy: boolean; error: string | null; onSubmit: (payload: { accessKey: string }) => Promise; }; export default function LoginPage({ busy, error, onSubmit }: LoginPageProps) { const [accessKey, setAccessKey] = useState(""); const handleSubmit = async (event: FormEvent) => { event.preventDefault(); await onSubmit({ accessKey: accessKey.trim() }); }; return (
Mailserver

User management

{/*

Sign in with the access key configured for this panel.

*/}
{error ?

{error}

: null}
); }