import 'rc-drawer-menu/assets/index.css';
import React, { PureComponent } from 'react';
import DrawerMenu from 'rc-drawer-menu';
import SiderMenu from './SiderMenu';
export default class Index extends PureComponent {
onCollapse = (collapsed) => {
this.props.dispatch({
type: 'global/changeLayoutCollapsed',
payload: collapsed,
});
}
render() {
const { collapsed, isMobile } = this.props;
return isMobile ? (
{ this.onCollapse(true); }}
width="256px"
>
) : (
);
}
}