import { useTranslation } from 'react-i18next' import { Button } from '../buttons' import { Modal, ModalProps } from './Modal' export type BetaWarningModalProps = Pick export const BetaWarningModal = ({ visible, // Don't forward onClose to Modal to force user to use the accept button. onClose, }: BetaWarningModalProps) => { const { t } = useTranslation() return ( {t('button.acceptTerms')} } header={{ title: t('title.beforeYouEnter'), subtitle: t('info.tos'), }} visible={visible} /> ) }