import React from 'react'; import { useSelector } from 'react-redux'; import { TYPOGRAPHY } from '../../../../helpers/constants/design-system'; import { useI18nContext } from '../../../../hooks/useI18nContext'; import { getIsMainnet } from '../../../../selectors'; import Box from '../../../ui/box'; import I18nValue from '../../../ui/i18n-value'; 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('transactionDetailGasTooltipIntro', [ isMainnet ? t('networkNameEthereum') : '', ])} {t('transactionDetailGasTooltipExplanation')} {t('transactionDetailGasTooltipConversion')} } position="bottom" /> ); }; export default GasDetailsItemTitle;