diff --git a/src/widgets/alert.jsx b/src/widgets/alert.jsx new file mode 100644 index 00000000..23678a65 --- /dev/null +++ b/src/widgets/alert.jsx @@ -0,0 +1,28 @@ +import React from 'react'; +import { FormattedMessage } from 'react-intl'; + +export default class Alert extends React.PureComponent { + render() { + return this.props.visible ? +
+
+
{this.props.title}
+
{this.props.content}
+
+ {this.props.onReject ? + + : + null + } + +
+
+
+ : + null; + } +};