import React, { useContext } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { JustifyContent, Display, TextColor, FlexDirection, TextVariant, BorderStyle, BorderColor, } from '../../../helpers/constants/design-system'; import { I18nContext } from '../../../contexts/i18n'; import { mmiActionsFactory } from '../../../store/institutional/institution-background'; import { Button, BUTTON_VARIANT, BUTTON_SIZES, Text, Box, } from '../../component-library'; const ComplianceSettings = () => { const t = useContext(I18nContext); const dispatch = useDispatch(); const mmiActions = mmiActionsFactory(); const complianceActivated = useSelector((state) => Boolean(state.metamask.institutionalFeatures?.complianceProjectId), ); const linkButton = ( ); return complianceActivated ? ( {t('complianceSettingsExplanation')} {linkButton} ) : ( {t('complianceBlurb0')} {t('complianceBlurb1')} {t('complianceBlurpStep0')}
  1. {t('complianceBlurbStep1')}
  2. {t('complianceBlurbStep2')}
  3. {t('complianceBlurbStep3')}
  4. {t('complianceBlurbStep4')}
  5. {t('complianceBlurbStep5')}
{linkButton}
); }; export default ComplianceSettings;