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
|
|
|
|
2021-12-21 20:01:43 +01:00
|
|
|
const AdvancedGasFeeInputSubtext = ({ latest, historical, feeTrend }) => {
|
2021-11-29 18:40:48 +01:00
|
|
|
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-12-21 20:01:43 +01:00
|
|
|
<img src={`./images/${feeTrend}-arrow.svg`} alt="feeTrend-arrow" />
|
2021-11-29 18:40:48 +01:00
|
|
|
</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,
|
2021-12-21 20:01:43 +01:00
|
|
|
feeTrend: PropTypes.string.isRequired,
|
2021-11-29 18:40:48 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
export default AdvancedGasFeeInputSubtext;
|