import React from 'react'; import { useSelector } from 'react-redux'; import { TypographyVariant } from '../../../../helpers/constants/design-system'; import { useI18nContext } from '../../../../hooks/useI18nContext'; import { getIsMainnet } from '../../../../selectors'; import Box from '../../../ui/box'; import InfoTooltip from '../../../ui/info-tooltip/info-tooltip'; import Typography from '../../../ui/typography/typography'; const GasDetailsItemTitle = () => { const t = useI18nContext(); const isMainnet = useSelector(getIsMainnet); return ( {t('gas')} ({t('transactionDetailGasInfoV2')}) {t('transactionDetailGasTooltipIntro', [ isMainnet ? t('networkNameEthereum') : '', ])} {t('transactionDetailGasTooltipExplanation')} {t('transactionDetailGasTooltipConversion')} } position="bottom" /> ); }; export default GasDetailsItemTitle;