import React from 'react'; import { Dialog } from '@/components/elements/dialog/index'; import { FullDialogProps } from '@/components/elements/dialog/Dialog'; import { Button } from '@/components/elements/button/index'; type ConfirmationProps = Omit & { children: React.ReactNode; confirm?: string | undefined; onConfirmed: (e: React.MouseEvent) => void; }; export default ({ confirm = 'Okay', children, onConfirmed, ...props }: ConfirmationProps) => { return ( {typeof children !== 'string' && children} Cancel {confirm} ); };