import 'rc-drawer/assets/index.css'; import React from 'react'; import DrawerMenu from 'rc-drawer'; import SiderMenu from './SiderMenu'; const SiderMenuWrapper = props => { const { isMobile, collapsed } = props; return isMobile ? ( } onHandleClick={() => { props.onCollapse(!collapsed); }} open={!collapsed} onMaskClick={() => { props.onCollapse(true); }} > ) : ( ); }; export default SiderMenuWrapper;