interface ErrorProps { error?: string } function ErrorBlock(props : ErrorProps) { const { error } = props; return ( <>{error &&
{error}
} ); } export default ErrorBlock;