import { useState } from 'react'; import { Modal } from 'react-bootstrap'; import { WarningCircle } from '@phosphor-icons/react'; const ErrorModal = ({ errorNumber, errorMessage, noReport, onClose // Accept onClose as a prop }) => { const [showModal, setShowModal] = useState(true); const hideModal = () => { setShowModal(false); onClose(); // Call the onClose handler }; return ( error {errorNumber} occurred

{errorMessage}.

{!noReport && (

Uniti support has already been notified of the problem. If you have any questions or would like to provide more details, please contact us at support@simplexable.com.

)}
); } export default ErrorModal;