MCPcopy Create free account
hub / github.com/bsoc-bitbyte/busify / AdminLayout

Function AdminLayout

frontend/src/components/AdminPanel/AdminLayout/index.tsx:9–48  ·  view source on GitHub ↗
({children}: LayoutProps)

Source from the content-addressed store, hash-verified

7import theme from '../../../theme';
8
9const 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
50export default AdminLayout;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected