2022-08-11 19:33:33 +02:00
|
|
|
import React, { useContext } from 'react';
|
|
|
|
|
2022-01-06 01:55:20 +01:00
|
|
|
import { SUPPORT_REQUEST_LINK } from '../../../helpers/constants/common';
|
|
|
|
import { useI18nContext } from '../../../hooks/useI18nContext';
|
2022-08-11 19:33:33 +02:00
|
|
|
import {
|
2023-04-03 17:31:04 +02:00
|
|
|
MetaMetricsContextProp,
|
|
|
|
MetaMetricsEventCategory,
|
|
|
|
MetaMetricsEventName,
|
2022-08-11 19:33:33 +02:00
|
|
|
} from '../../../../shared/constants/metametrics';
|
|
|
|
import { MetaMetricsContext } from '../../../contexts/metametrics';
|
2021-09-08 22:08:23 +02:00
|
|
|
|
|
|
|
const BetaHomeFooter = () => {
|
|
|
|
const t = useI18nContext();
|
2022-08-11 19:33:33 +02:00
|
|
|
const trackEvent = useContext(MetaMetricsContext);
|
2021-09-08 22:08:23 +02:00
|
|
|
|
2022-12-09 15:01:40 +01:00
|
|
|
const SUPPORT_LINK =
|
|
|
|
'https://docs.google.com/forms/d/e/1FAIpQLSfpkpeVMvfFw_1CWzrs5M3TEqE9VPMSspLPJgk1u4ZyUkQRbg/viewform?usp=sharing';
|
|
|
|
|
2021-09-08 22:08:23 +02:00
|
|
|
return (
|
|
|
|
<>
|
2022-08-11 19:33:33 +02:00
|
|
|
<a
|
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
2022-12-09 15:01:40 +01:00
|
|
|
href={SUPPORT_LINK}
|
2022-08-11 19:33:33 +02:00
|
|
|
onClick={() => {
|
|
|
|
trackEvent(
|
|
|
|
{
|
2023-04-03 17:31:04 +02:00
|
|
|
category: MetaMetricsEventCategory.Footer,
|
|
|
|
event: MetaMetricsEventName.SupportLinkClicked,
|
2022-08-11 19:33:33 +02:00
|
|
|
properties: {
|
|
|
|
url: SUPPORT_REQUEST_LINK,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
2023-04-03 17:31:04 +02:00
|
|
|
contextPropsIntoEventProperties: [
|
|
|
|
MetaMetricsContextProp.PageTitle,
|
|
|
|
],
|
2022-08-11 19:33:33 +02:00
|
|
|
},
|
|
|
|
);
|
|
|
|
}}
|
|
|
|
>
|
2021-09-08 22:08:23 +02:00
|
|
|
{t('needHelpSubmitTicket')}
|
|
|
|
</a>{' '}
|
|
|
|
|{' '}
|
2022-12-09 15:01:40 +01:00
|
|
|
<a href={SUPPORT_LINK} target="_blank" rel="noopener noreferrer">
|
2021-09-08 22:08:23 +02:00
|
|
|
{t('needHelpFeedback')}
|
|
|
|
</a>
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default BetaHomeFooter;
|