import React, { useContext } from 'react'; import tw from 'twin.macro'; import Button from '@/components/elements/Button'; import asModal from '@/hoc/asModal'; import ModalContext from '@/context/ModalContext'; type Props = { title: string; buttonText: string; onConfirmed: () => void; showSpinnerOverlay?: boolean; }; const ConfirmationModal: React.FC = ({ title, children, buttonText, onConfirmed }) => { const { dismiss } = useContext(ModalContext); return ( <>

{title}

{children}
); }; ConfirmationModal.displayName = 'ConfirmationModal'; export default asModal((props) => ({ showSpinnerOverlay: props.showSpinnerOverlay, }))(ConfirmationModal);