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