import React, { useContext } from 'react'; import { useSelector } from 'react-redux'; import { useHistory } from 'react-router-dom'; import { I18nContext } from '../../../contexts/i18n'; import { DEFAULT_ROUTE } from '../../../helpers/constants/routes'; import { JustifyContent, DISPLAY, AlignItems, TextColor, TEXT_ALIGN, BackgroundColor, Color, FLEX_DIRECTION, } from '../../../helpers/constants/design-system'; import { ButtonIcon, ButtonIconSize, IconName, } from '../../../components/component-library'; import { Text } from '../../../components/component-library/text/deprecated'; import Box from '../../../components/ui/box'; import ComplianceSettings from '../../../components/institutional/compliance-settings'; const ComplianceFeaturePage = () => { const t = useContext(I18nContext); const history = useHistory(); const complianceActivated = useSelector((state) => Boolean(state.metamask.institutionalFeatures?.complianceProjectId), ); return ( <> history.push(DEFAULT_ROUTE)} display={[DISPLAY.FLEX]} /> Codefi Compliance {t('codefiCompliance')} {complianceActivated && ( {t('activated')} )} ); }; export default ComplianceFeaturePage;