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