MCPcopy Create free account
hub / github.com/LevelUpWeb3/app / PageHeaderWrapper

Function PageHeaderWrapper

src/components/PageHeaderWrapper/index.tsx:5–18  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

3import { LAYOUT_HEADER_HEIGHT, MOBILE_LAYOUT_HEADER_HEIGHT } from "@/constants";
4
5const PageHeaderWrapper = (props) => {
6 const { bgColor, sx, children } = props;
7 return (
8 <Box
9 sx={{
10 pt: [MOBILE_LAYOUT_HEADER_HEIGHT, LAYOUT_HEADER_HEIGHT],
11 mt: [`-${MOBILE_LAYOUT_HEADER_HEIGHT}`, `-${LAYOUT_HEADER_HEIGHT}`],
12 backgroundColor: bgColor,
13 }}
14 >
15 <Container sx={sx}>{children}</Container>
16 </Box>
17 );
18};
19
20export default PageHeaderWrapper;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected