import React, { useContext } from 'react'; import { SUPPORT_REQUEST_LINK } from '../../../helpers/constants/common'; import { useI18nContext } from '../../../hooks/useI18nContext'; import { MetaMetricsContextProp, MetaMetricsEventCategory, MetaMetricsEventName, } from '../../../../shared/constants/metametrics'; import { MetaMetricsContext } from '../../../contexts/metametrics'; const BetaHomeFooter = () => { const t = useI18nContext(); const trackEvent = useContext(MetaMetricsContext); const SUPPORT_LINK = 'https://docs.google.com/forms/d/e/1FAIpQLSfpkpeVMvfFw_1CWzrs5M3TEqE9VPMSspLPJgk1u4ZyUkQRbg/viewform?usp=sharing'; return ( <> { trackEvent( { category: MetaMetricsEventCategory.Footer, event: MetaMetricsEventName.SupportLinkClicked, properties: { url: SUPPORT_REQUEST_LINK, }, }, { contextPropsIntoEventProperties: [ MetaMetricsContextProp.PageTitle, ], }, ); }} > {t('needHelpSubmitTicket')} {' '} |{' '} {t('needHelpFeedback')} ); }; export default BetaHomeFooter;