import PropTypes from 'prop-types'; const PopupHeader = (props) => { if (!props.title) { return null; } return (

{props.title}

); }; PopupHeader.defaultProps = { title: null, className: null, }; PopupHeader.propTypes = { title: PropTypes.string, className: PropTypes.string, }; export default PopupHeader;