import PropTypes from 'prop-types'; import { PureComponent } from 'react'; import spring from 'react-motion/lib/spring'; import Motion from '../../ui/util/optional_motion'; export default class Warning extends PureComponent { static propTypes = { message: PropTypes.node.isRequired, }; render () { const { message } = this.props; return ( {({ opacity, scaleX, scaleY }) => (
{message}
)}
); } }