You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
357 B

  1. import React from 'react';
  2. import PropTypes from 'prop-types';
  3. class Warning extends React.PureComponent {
  4. static propTypes = {
  5. message: PropTypes.node.isRequired
  6. };
  7. render () {
  8. const { message } = this.props;
  9. return (
  10. <div className='compose-form__warning'>
  11. {message}
  12. </div>
  13. );
  14. }
  15. }
  16. export default Warning;