import { cn } from "#/lib/utils.ts" import { Button } from "#/components/ui/button.tsx" import { Card, CardContent, CardDescription, CardHeader, CardTitle, } from "#/components/ui/card.tsx" import { Field, FieldDescription, FieldError, FieldGroup, FieldLabel, } from "#/components/ui/field.tsx" import { Input } from "#/components/ui/input.tsx" type LoginFormProps = React.ComponentProps<"div"> & { username: string password: string error?: string | null pending?: boolean onUsernameChange: (value: string) => void onPasswordChange: (value: string) => void onSubmit: (event: React.FormEvent) => void onSignupClick: () => void } export function LoginForm({ className, username, password, error, pending = false, onUsernameChange, onPasswordChange, onSubmit, onSignupClick, ...props }: LoginFormProps) { return (
Sign in to Cymelle Use your username and password to continue.
Username onUsernameChange(event.target.value)} required />
Password
onPasswordChange(event.target.value)} required />
{error ? {error} : null} Don't have an account?{" "}
) }