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 { Button, BUTTON_VARIANT, BUTTON_SIZES } from '../../component-library';
import { Text } from '../../component-library/text/deprecated';
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')}
- {t('complianceBlurbStep1')}
- {t('complianceBlurbStep2')}
- {t('complianceBlurbStep3')}
- {t('complianceBlurbStep4')}
- {t('complianceBlurbStep5')}
{linkButton}
);
};
export default ComplianceSettings;