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';
|
2022-01-06 01:55:20 +01:00
|
|
|
|
|
|
|
const FlaskHomeFooter = () => {
|
|
|
|
const t = useI18nContext();
|
2022-08-11 19:33:33 +02:00
|
|
|
const trackEvent = useContext(MetaMetricsContext);
|
2022-01-06 01:55:20 +01:00
|
|
|
|
|
|
|
return (
|
|
|
|
<>
|
2022-08-11 19:33:33 +02:00
|
|
|
<a
|
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
href={SUPPORT_REQUEST_LINK}
|
|
|
|
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
|
|
|
},
|
|
|
|
);
|
|
|
|
}}
|
|
|
|
>
|
2022-01-06 01:55:20 +01:00
|
|
|
{t('needHelpSubmitTicket')}
|
|
|
|
</a>{' '}
|
|
|
|
|{' '}
|
|
|
|
<a
|
|
|
|
href="https://community.metamask.io/c/metamask-flask"
|
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
>
|
|
|
|
{t('needHelpFeedback')}
|
|
|
|
</a>
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default FlaskHomeFooter;
|