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