import React from 'react'; import { toBigNumber } from '../../../../../shared/modules/conversion.utils'; import { COLORS } from '../../../../helpers/constants/design-system'; import { useGasFeeContext } from '../../../../contexts/gasFee'; import I18nValue from '../../../ui/i18n-value'; import Typography from '../../../ui/typography/typography'; import StatusSlider from './status-slider'; const NetworkStatus = () => { const { gasFeeEstimates } = useGasFeeContext(); let estBaseFee = null; if (gasFeeEstimates?.estimatedBaseFee) { // estimatedBaseFee is not likely to be below 1, value .01 is used as test networks sometimes // show have small values for it and more decimal places may cause UI to look broken. estBaseFee = toBigNumber.dec(gasFeeEstimates?.estimatedBaseFee); estBaseFee = estBaseFee.lessThan(0.01) ? 0.01 : estBaseFee.toFixed(2); } return (