2017-05-03 02:04:16 +02:00
|
|
|
import React from 'react';
|
2017-04-24 00:38:37 +02:00
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
|
2017-06-23 19:36:54 +02:00
|
|
|
export default class Warning extends React.PureComponent {
|
2017-04-24 00:38:37 +02:00
|
|
|
|
2017-05-12 14:44:10 +02:00
|
|
|
static propTypes = {
|
2017-05-20 17:31:47 +02:00
|
|
|
message: PropTypes.node.isRequired,
|
2017-05-12 14:44:10 +02:00
|
|
|
};
|
2017-04-24 00:38:37 +02:00
|
|
|
|
|
|
|
render () {
|
|
|
|
const { message } = this.props;
|
|
|
|
|
|
|
|
return (
|
|
|
|
<div className='compose-form__warning'>
|
|
|
|
{message}
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|