import { Box, Button, ButtonGroup, Icon, Modal } from '@rocket.chat/fuselage'; import React, { FC } from 'react'; import { useTranslation } from '../contexts/TranslationContext'; type DeleteWarningModalProps = { cancelText?: string; deleteText?: string; confirm?: () => void; onDelete: () => void; onCancel: () => void; }; const DeleteWarningModal: FC = ({ children, cancelText, deleteText, onCancel, onDelete, confirm = onDelete, ...props }) => { const t = useTranslation(); return ( {t('Are_you_sure')} {children} ); }; export default DeleteWarningModal;