import type { FC } from 'react' import cn from 'clsx' interface ErrorMessageProps { error: { message: string code?: string errors?: { message: string }[] } className?: string } const ErrorMessages: FC = ({ error, className }) => { return (
{error.message} {error.errors && error.errors?.length > 0 && ( )}
) } export default ErrorMessages