import React, { useContext } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { JustifyContent, DISPLAY, TextColor, FLEX_DIRECTION, TextVariant, BorderStyle, BorderColor, } from '../../../helpers/constants/design-system'; import { I18nContext } from '../../../contexts/i18n'; import { mmiActionsFactory } from '../../../store/institutional/institution-background'; import { Text, Button, BUTTON_TYPES, BUTTON_SIZES, } from '../../component-library'; import Box from '../../ui/box'; 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;