(theme: Theme)
| 48 | }) |
| 49 | |
| 50 | const closedMixin = (theme: Theme): CSSObject => ({ |
| 51 | transition: theme.transitions.create('width', { |
| 52 | easing: theme.transitions.easing.sharp, |
| 53 | duration: theme.transitions.duration.leavingScreen |
| 54 | }), |
| 55 | overflowX: 'hidden', |
| 56 | width: `calc(${theme.spacing(7)} + 1px)`, |
| 57 | [theme.breakpoints.up('sm')]: { |
| 58 | width: `calc(${theme.spacing(8)} + 1px)` |
| 59 | } |
| 60 | }) |
| 61 | |
| 62 | const Drawer = styled(MuiDrawer, |
| 63 | { shouldForwardProp: (prop) => prop !== 'open' })( |