import { Box } from '@rocket.chat/fuselage'; import { GenericModal } from '@rocket.chat/ui-client'; import { useRouter } from '@rocket.chat/ui-contexts'; import { Trans, useTranslation } from 'react-i18next'; export type WarningModalProps = { onConfirm: () => void; onCancel: () => void; }; const WarningModal = ({ onConfirm, onCancel }: WarningModalProps) => { const { t } = useTranslation(); const router = useRouter(); const handleNavigate = () => { onCancel(); router.navigate({ name: 'admin-ABAC', params: { tab: 'rooms', }, }); }; return ( You will not be able to automatically or manually manage users in existing ABAC-managed rooms. To restore a room's default access control, it must be removed from ABAC management in {' '} ABAC {'>'} Rooms . ); }; export default WarningModal;