import { Banner } from './Banner.tsx'; export const FormErrors = ({ errors }: { errors: Record }) => { const entries = Object.entries(errors); if (entries.length === 0) { return null; } return (
Some errors have been found:
    {entries.map(([key, value]) => { return (
  • {value.message}
  • ); })}
); }; export const FormError = ({ children }: { children: React.ReactNode }) => { if (!children) { return null; } return (
{children}
); };