import 'rc-drawer-menu/assets/index.css'; import React from 'react'; import DrawerMenu from 'rc-drawer-menu'; import SiderMenu from './SiderMenu'; export default props => props.isMobile ? ( { props.onCollapse(true); }} width="256px" > ) : ( );