import React from "react"; import { Button, Alert, Col, Row } from "react-bootstrap"; import PropTypes from "prop-types"; const ErrorAlert = (props) => { const { errorAlert, setErrorAlert } = props; if (!errorAlert) { return <>; } return ( {errorAlert} ); }; ErrorAlert.propTypes = { errorAlert: PropTypes.string, setErrorAlert: PropTypes.func, }; export default ErrorAlert;