MCPcopy Create free account
hub / github.com/carbonplan/maps / Section

Function Section

docs/components/section.js:11–25  ·  view source on GitHub ↗
({ children, name })

Source from the content-addressed store, hash-verified

9}
10
11const Section = ({ children, name }) => {
12 const styledComponents = useThemedStylesWithMdx(useMDXComponents(components))
13 return (
14 <MDXProvider components={styledComponents}>
15 <NavSection
16 name={name}
17 menu={{ contents, prefix: '/maps' }}
18 title={`${name[0].toUpperCase() + name.slice(1)} – CarbonPlan`}
19 description={'TK'}
20 >
21 {children}
22 </NavSection>
23 </MDXProvider>
24 )
25}
26
27export default Section

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected