(props)
| 3 | import { LAYOUT_HEADER_HEIGHT, MOBILE_LAYOUT_HEADER_HEIGHT } from "@/constants"; |
| 4 | |
| 5 | const 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 | |
| 20 | export default PageHeaderWrapper; |
nothing calls this directly
no outgoing calls
no test coverage detected