import React from 'react'; import { useSelector } from 'react-redux'; import { TextVariant } 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 { Text } from '../../../component-library/text/deprecated'; 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;