({children}: LayoutProps)
| 7 | import theme from '../../../theme'; |
| 8 | |
| 9 | const AdminLayout = ({children}: LayoutProps) => { |
| 10 | const GridItemStyled = styled(Grid)` |
| 11 | &.MuiGrid-item { |
| 12 | padding: 0; |
| 13 | } |
| 14 | `; |
| 15 | |
| 16 | return ( |
| 17 | <GridItemStyled container spacing={4}> |
| 18 | <GridItemStyled |
| 19 | item |
| 20 | sx={{ |
| 21 | [theme.breakpoints.up('sm')]: { |
| 22 | minWidth: '13rem', |
| 23 | }, |
| 24 | }} |
| 25 | > |
| 26 | <Sidebar /> |
| 27 | </GridItemStyled> |
| 28 | <Grid |
| 29 | container |
| 30 | direction="column" |
| 31 | justifyContent="flex-start" |
| 32 | alignItems="stretch" |
| 33 | item |
| 34 | rowSpacing={4} |
| 35 | xs |
| 36 | > |
| 37 | {' '} |
| 38 | <Grid alignItems={'stretch'} item xs> |
| 39 | <Navbar /> |
| 40 | </Grid> |
| 41 | <Grid item>{children}</Grid> |
| 42 | <Grid alignItems={'stretch'} item xs> |
| 43 | <Footer /> |
| 44 | </Grid> |
| 45 | </Grid> |
| 46 | </GridItemStyled> |
| 47 | ); |
| 48 | }; |
| 49 | |
| 50 | export default AdminLayout; |
nothing calls this directly
no outgoing calls
no test coverage detected