import React from 'react'; import './confirmation-modal.css'; interface ConfirmationModalProps { show: boolean; title: string; description: string; confirmButtonText?: string; confirmButtonClass?: string; cancelButtonClass?: string; onConfirm: () => void; onCancel: () => void; } const ConfirmationModal: React.FunctionComponent = ({ confirmButtonText = 'OK', confirmButtonClass = 'btn-primary', cancelButtonClass = '', ...props }) => { const modalShowClass = props.show ? 'modal-show': 'modal-hide'; return (
{props.title}

{props.description}

); }; export default ConfirmationModal;