import React, { Fragment } from 'react'; import PropTypes from 'prop-types'; const InfoBox = (props) => ( { (props.msg || props.children)? (
{ (typeof props.msg === 'string' || props.msg instanceof String)? props.msg : 'Enjoy the colouring! Usual service should resume shortly.' } { props.children }
) : null }
); InfoBox.propTypes = { msg: PropTypes.string, children: PropTypes.node } export default InfoBox;