import React from 'react'; type FieldErrorProps = { errors?: string[]; }; export const FieldError: React.FC = ({ errors }) => (errors && errors.length > 0 &&
{errors[0]}
) || null; export const StandaloneFieldError: React.FC = ({ errors }) => (errors && errors.length > 0 && (
{errors[0]}
)) || null;