/**
*
* PopUpWarning
*
*/
import React from 'react';
import PropTypes from 'prop-types';
// modal
import { Button, Modal, ModalHeader, ModalBody } from 'reactstrap';
import { FormattedMessage } from 'react-intl';
import Danger from '../../assets/icons/icon_danger.svg';
import styles from './styles.scss';
class PopUpWarning extends React.Component { // eslint-disable-line react/prefer-stateless-function
renderModalBodyDanger = () => (
{(message) => (
{message}
)}
)
renderModalBody = () => (
{(message) => (
)}
{(message) => (
)}
)
render() {
const modalBody = this.props.showDanger ? this.renderModalBodyDanger() : this.renderModalBody();
return (
);
}
}
PopUpWarning.propTypes = {
dangerMessage: PropTypes.string,
handleConfirm: PropTypes.func,
handleConfirmDanger: PropTypes.func,
isOpen: PropTypes.bool,
showDanger: PropTypes.bool,
toggleModal: PropTypes.func,
warningMessage: PropTypes.string,
}
export default PopUpWarning;