2021-11-29 18:40:48 +01:00
|
|
|
import React from 'react';
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
|
|
|
|
import Box from '../../../ui/box';
|
|
|
|
import I18nValue from '../../../ui/i18n-value';
|
2021-12-10 01:50:38 +01:00
|
|
|
import LoadingHeartBeat from '../../../ui/loading-heartbeat';
|
2021-11-29 18:40:48 +01:00
|
|
|
|
|
|
|
const AdvancedGasFeeInputSubtext = ({ latest, historical }) => {
|
|
|
|
return (
|
|
|
|
<Box className="advanced-gas-fee-input-subtext">
|
|
|
|
<Box display="flex" alignItems="center">
|
|
|
|
<span className="advanced-gas-fee-input-subtext__label">
|
|
|
|
<I18nValue messageKey="currentTitle" />
|
|
|
|
</span>
|
2021-12-10 01:50:38 +01:00
|
|
|
<span className="advanced-gas-fee-input-subtext__value">
|
|
|
|
<LoadingHeartBeat />
|
|
|
|
{latest}
|
|
|
|
</span>
|
2021-11-29 18:40:48 +01:00
|
|
|
<img src="./images/high-arrow.svg" alt="" />
|
|
|
|
</Box>
|
|
|
|
<Box>
|
|
|
|
<span className="advanced-gas-fee-input-subtext__label">
|
|
|
|
<I18nValue messageKey="twelveHrTitle" />
|
|
|
|
</span>
|
2021-12-10 01:50:38 +01:00
|
|
|
<span className="advanced-gas-fee-input-subtext__value">
|
|
|
|
<LoadingHeartBeat />
|
|
|
|
{historical}
|
|
|
|
</span>
|
2021-11-29 18:40:48 +01:00
|
|
|
</Box>
|
|
|
|
</Box>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
AdvancedGasFeeInputSubtext.propTypes = {
|
2021-12-01 01:31:21 +01:00
|
|
|
latest: PropTypes.string,
|
2021-11-29 18:40:48 +01:00
|
|
|
historical: PropTypes.string,
|
|
|
|
};
|
|
|
|
|
|
|
|
export default AdvancedGasFeeInputSubtext;
|