interface Props { errors: Record } export default function ErrorDisplay({ errors }: Props) { if (!errors || Object.keys(errors).length === 0) { return null } return (

Please correct the following errors:

) }