import React, { useContext, useState } from 'react'; import { I18nContext } from '../../../contexts/i18n'; import Typography from '../../ui/typography/typography'; import { FONT_WEIGHT, TYPOGRAPHY, COLORS, } from '../../../helpers/constants/design-system'; import AdvancedGasControlsRow from './advanced-gas-controls-row.component'; export default function AdvancedGasControls() { const t = useContext(I18nContext); const [gasLimit, setGasLimit] = useState(0); const [maxPriorityFee, setMaxPriorityFee] = useState(0); const [maxFee, setMaxFee] = useState(0); // Used in legacy version const [gasPrice, setGasPrice] = useState(0); return (
{process.env.SHOW_EIP_1559_UI ? ( <> {t('gasFeeEstimate')}: {' '} } /> {t('gasFeeEstimate')}: {' '} } /> ) : ( <> )}
); }