2021-06-24 01:39:44 +02:00
|
|
|
import React from 'react';
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
|
|
|
|
import Typography from '../../ui/typography/typography';
|
|
|
|
import { COLORS, TYPOGRAPHY } from '../../../helpers/constants/design-system';
|
|
|
|
|
2021-07-26 17:35:51 +02:00
|
|
|
export default function TransactionTotalBanner({
|
|
|
|
total = '',
|
|
|
|
detail = '',
|
|
|
|
timing,
|
|
|
|
}) {
|
2021-06-24 01:39:44 +02:00
|
|
|
return (
|
|
|
|
<div className="transaction-total-banner">
|
|
|
|
<Typography color={COLORS.BLACK} variant={TYPOGRAPHY.H1}>
|
2021-07-30 01:29:36 +02:00
|
|
|
{total}
|
2021-06-24 01:39:44 +02:00
|
|
|
</Typography>
|
|
|
|
{detail && (
|
|
|
|
<Typography
|
|
|
|
color={COLORS.BLACK}
|
|
|
|
variant={TYPOGRAPHY.H6}
|
|
|
|
className="transaction-total-banner__detail"
|
|
|
|
>
|
|
|
|
{detail}
|
|
|
|
</Typography>
|
|
|
|
)}
|
2021-07-26 17:35:51 +02:00
|
|
|
{timing}
|
2021-06-24 01:39:44 +02:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
TransactionTotalBanner.propTypes = {
|
|
|
|
total: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
|
|
detail: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
|
|
timing: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
|
|
};
|