import React, { useContext } from 'react'; import PropTypes from 'prop-types'; import { SUPPORT_LINK } from '../../../../shared/lib/ui-utils'; import { useI18nContext } from '../../../hooks/useI18nContext'; import { MetaMetricsContextProp, MetaMetricsEventCategory, MetaMetricsEventName, } from '../../../../shared/constants/metametrics'; import { MetaMetricsContext } from '../../../contexts/metametrics'; import { ButtonLink, IconName } from '../../../components/component-library'; import { Display, Size } from '../../../helpers/constants/design-system'; const InstitutionalHomeFooter = ({ activitySupportDisplayStyle }) => { const t = useI18nContext(); const trackEvent = useContext(MetaMetricsContext); return ( { trackEvent( { category: MetaMetricsEventCategory.Home, event: MetaMetricsEventName.SupportLinkClicked, properties: { url: SUPPORT_LINK, }, }, { contextPropsIntoEventProperties: [MetaMetricsContextProp.PageTitle], }, ); }} externalLink > {`${t('appNameMmi')} ${t('support').toLowerCase()}`} ); }; InstitutionalHomeFooter.propTypes = { activitySupportDisplayStyle: PropTypes.shape({ justifyContent: PropTypes.string.isRequired, paddingLeft: PropTypes.string, marginBottom: PropTypes.string, marginTop: PropTypes.string, }).isRequired, }; export default InstitutionalHomeFooter;