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 {
|
|
|
|
EVENT,
|
|
|
|
EVENT_NAMES,
|
|
|
|
CONTEXT_PROPS,
|
|
|
|
} 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(
|
|
|
|
{
|
|
|
|
category: EVENT.CATEGORIES.FOOTER,
|
|
|
|
event: EVENT_NAMES.SUPPORT_LINK_CLICKED,
|
|
|
|
properties: {
|
|
|
|
url: SUPPORT_REQUEST_LINK,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
contextPropsIntoEventProperties: [CONTEXT_PROPS.PAGE_TITLE],
|
|
|
|
},
|
|
|
|
);
|
|
|
|
}}
|
|
|
|
>
|
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;
|