1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-02 06:07:06 +01:00
metamask-extension/ui/components/app/confirm-page-container/confirm-page-container-content/confirm-page-container-warning/confirm-page-container-warning.component.js

26 lines
705 B
JavaScript
Raw Normal View History

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