import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import MediaQuery from 'react-responsive'; import Logo from './logo'; import MainSideNav from './main-side-nav'; import { SIDE_PANEL_FOLDED_WIDTH } from '../constants'; const propTypes = { isSidePanelClosed: PropTypes.bool, currentTab: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), onCloseSidePanel: PropTypes.func, tabItemClick: PropTypes.func, children: PropTypes.object, isSidePanelFolded: PropTypes.bool, toggleFoldSideNav: PropTypes.func }; class SidePanel extends React.Component { render() { const { children, isSidePanelFolded } = this.props; const style = isSidePanelFolded ? { flexBasis: SIDE_PANEL_FOLDED_WIDTH } : {}; return (