import React from 'react'; import { COLORS, FONT_WEIGHT, TYPOGRAPHY, } from '../../../../helpers/constants/design-system'; import { roundToDecimalPlacesRemovingExtraZeroes } from '../../../../helpers/utils/util'; import { useGasFeeContext } from '../../../../contexts/gasFee'; import I18nValue from '../../../ui/i18n-value'; import Typography from '../../../ui/typography/typography'; import { BaseFeeTooltip } from './tooltips'; import LatestPriorityFeeField from './latest-priority-fee-field'; import StatusSlider from './status-slider'; const NetworkStatistics = () => { const { gasFeeEstimates } = useGasFeeContext(); return (
{gasFeeEstimates?.estimatedBaseFee && `${roundToDecimalPlacesRemovingExtraZeroes( gasFeeEstimates?.estimatedBaseFee, 0, )} GWEI`}
); }; export default NetworkStatistics;