import type { BoxProps } from '@chakra-ui/react'; import { chakra } from '@chakra-ui/react'; import BigNumber from 'bignumber.js'; import React from 'react'; import { currencyUnits } from 'lib/units'; import { thinsp } from 'toolkit/utils/htmlEntities'; import SimpleValue from './SimpleValue'; import { GWEI, WEI } from './utils'; export interface Props extends Omit { amount: string; asset?: string; accuracy?: number; noTooltip?: boolean; loading?: boolean; } const GasPriceValue = ({ amount, asset = currencyUnits.ether, accuracy = 0, noTooltip, loading, ...rest }: Props) => { return ( ( } endElement={ `${ thinsp }${ currencyUnits.gwei })` } noTooltip={ noTooltip } loading={ loading } color="text.secondary" /> ); }; export default React.memo(GasPriceValue);