import { TextField } from "@repo/rdx-ui/components"; import { Button, Card, CardContent, CardDescription, CardHeader, CardTitle, Form, Spinner, } from "@repo/shadcn-ui/components"; import type { UseFormReturn } from "react-hook-form"; import type { LoginForm } from "../entities"; interface LoginCardProps { form: UseFormReturn; onSubmit: () => void; } export function LoginCard({ form, onSubmit }: LoginCardProps) { const rootError = form.formState.errors.root?.message; return ( Accede al ERP Introduce tu email y contraseña para continuar.
autoComplete="email" id="login-email" label="Email" name="email" placeholder="tu@email.com" required typePreset="email" /> autoComplete="current-password" id="login-password" label="Contraseña" name="password" placeholder="••••••••" required typePreset="password" /> {rootError ? ( ) : null}
); }