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';
|
|
|
|
|
|
|
|
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>
|
|
|
|
<span>{latest}</span>
|
|
|
|
<img src="./images/high-arrow.svg" alt="" />
|
|
|
|
</Box>
|
|
|
|
<Box>
|
|
|
|
<span className="advanced-gas-fee-input-subtext__label">
|
|
|
|
<I18nValue messageKey="twelveHrTitle" />
|
|
|
|
</span>
|
|
|
|
<span>{historical}</span>
|
|
|
|
</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;
|