import React from 'react'; import PropTypes from 'prop-types'; import { siteRoot, mediaUrl, logoPath, logoWidth, logoHeight, siteTitle } from '../utils/constants'; const propTypes = { onCloseSidePanel: PropTypes.func, showCloseSidePanelIcon: PropTypes.bool, }; class Logo extends React.Component { closeSide = () => { this.props.onCloseSidePanel(); }; render() { return (
{this.props.showCloseSidePanelIcon && }
); } } Logo.propTypes = propTypes; export default Logo;