mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-12 04:37:13 +01:00
43 lines
1.3 KiB
JavaScript
43 lines
1.3 KiB
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
|
|
import Box from '../../../ui/box';
|
|
import I18nValue from '../../../ui/i18n-value';
|
|
import LoadingHeartBeat from '../../../ui/loading-heartbeat';
|
|
|
|
const AdvancedGasFeeInputSubtext = ({ latest, historical, feeTrend }) => {
|
|
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 className="advanced-gas-fee-input-subtext__value">
|
|
<LoadingHeartBeat />
|
|
{latest}
|
|
</span>
|
|
<span className={`advanced-gas-fee-input-subtext__${feeTrend}`}>
|
|
<img src={`./images/${feeTrend}-arrow.svg`} alt="feeTrend-arrow" />
|
|
</span>
|
|
</Box>
|
|
<Box>
|
|
<span className="advanced-gas-fee-input-subtext__label">
|
|
<I18nValue messageKey="twelveHrTitle" />
|
|
</span>
|
|
<span className="advanced-gas-fee-input-subtext__value">
|
|
<LoadingHeartBeat />
|
|
{historical}
|
|
</span>
|
|
</Box>
|
|
</Box>
|
|
);
|
|
};
|
|
|
|
AdvancedGasFeeInputSubtext.propTypes = {
|
|
latest: PropTypes.string,
|
|
historical: PropTypes.string,
|
|
feeTrend: PropTypes.string.isRequired,
|
|
};
|
|
|
|
export default AdvancedGasFeeInputSubtext;
|