2021-02-04 19:15:23 +01:00
|
|
|
import React from 'react';
|
|
|
|
import PropTypes from 'prop-types';
|
2023-05-09 19:34:58 +02:00
|
|
|
import { Icon, IconName } from '../../../../component-library';
|
|
|
|
import { IconColor } from '../../../../../helpers/constants/design-system';
|
2018-06-23 08:52:45 +02:00
|
|
|
|
2020-02-15 21:34:12 +01:00
|
|
|
const ConfirmPageContainerWarning = (props) => {
|
2018-06-23 08:52:45 +02:00
|
|
|
return (
|
|
|
|
<div className="confirm-page-container-warning">
|
2023-05-09 19:34:58 +02:00
|
|
|
<Icon
|
|
|
|
name={IconName.Info}
|
|
|
|
color={IconColor.warningDefault}
|
|
|
|
className="confirm-page-container-warning__icon"
|
|
|
|
/>
|
2018-06-23 08:52:45 +02:00
|
|
|
<div className="confirm-page-container-warning__warning">
|
2020-11-03 00:41:28 +01:00
|
|
|
{props.warning}
|
2018-06-23 08:52:45 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-02-04 19:15:23 +01:00
|
|
|
);
|
|
|
|
};
|
2018-06-23 08:52:45 +02:00
|
|
|
|
|
|
|
ConfirmPageContainerWarning.propTypes = {
|
|
|
|
warning: PropTypes.string,
|
2021-02-04 19:15:23 +01:00
|
|
|
};
|
2018-06-23 08:52:45 +02:00
|
|
|
|
2021-02-04 19:15:23 +01:00
|
|
|
export default ConfirmPageContainerWarning;
|