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