  title: string;
  text: string;
  trigger: React.ReactElement;
  confirmText?: string;
  rejectText?: string;
  onConfirm: () => void;
  onReject?: () => void;
}

const ConfirmationModal: React.FC<Props> = ({ title, text, trigger, onConfirm, confirmText, onReject, rejectText }) => {
  return (
    <Popup trigger={trigger} modal className="confirmationPopup">
      {(close: () => void) => (
        <>