import { AlertDialog, AlertDialogBody, AlertDialogContent, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, MetaButton, } from '@metafam/ds'; import React, { useRef } from 'react'; type Props = { isOpen: boolean, onNope: () => void; onYep: () => void; header?: React.ReactNode, body?: React.ReactNode, loading?: boolean, loadingText?: string, } export const ConfirmModal: React.FC = ({ isOpen, onNope, onYep, header, body, loading, loadingText, }) => { const cancelRef = useRef(null) return ( {header || ' Are you sure ?'} {body && {body} } Nope Yep ); };