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