const PropTypes = require('prop-types'); const React = require('react'); const classNames = require('classnames'); const FlexRow = require('../../components/flex-row/flex-row.jsx'); const Button = require('../../components/forms/button.jsx'); require('./banner.scss'); const Banner = ({className, message, actionMessage, onAction}) => (
{message} {actionMessage && onAction && ( )}
); Banner.propTypes = { actionMessage: PropTypes.node, className: PropTypes.string, message: PropTypes.node.isRequired, onAction: PropTypes.func }; module.exports = Banner;