2024-09-09 07:58:33 +00:00
|
|
|
import React from 'react';
|
|
|
|
import PropTypes from 'prop-types';
|
2024-12-24 03:20:40 +00:00
|
|
|
import { Modal, ModalBody } from 'reactstrap';
|
|
|
|
import SeahubModalHeader from '@/components/common/seahub-modal-header';
|
2024-10-21 03:29:17 +00:00
|
|
|
import Loading from '../loading';
|
2024-09-09 07:58:33 +00:00
|
|
|
|
|
|
|
function TipDialog({ modalTitle, modalTip }) {
|
|
|
|
return (
|
|
|
|
<Modal isOpen={true}>
|
2024-12-24 03:20:40 +00:00
|
|
|
<SeahubModalHeader>{modalTitle}</SeahubModalHeader>
|
2024-09-09 07:58:33 +00:00
|
|
|
<ModalBody className='d-flex flex-column justify-content-center align-terms-center' style={{ height: '180px' }}>
|
|
|
|
<Loading />
|
|
|
|
<div className='d-flex justify-content-center mt-6'>{modalTip}</div>
|
|
|
|
</ModalBody>
|
|
|
|
</Modal>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
TipDialog.propTypes = {
|
|
|
|
modalTitle: PropTypes.string.isRequired,
|
|
|
|
modalTip: PropTypes.string.isRequired,
|
|
|
|
};
|
|
|
|
|
|
|
|
export default TipDialog;
|