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