MCPcopy Create free account
hub / github.com/LearnPrompt/LearnPrompt / MyLayout

Function MyLayout

src/theme/MyLayout/index.tsx:7–24  ·  view source on GitHub ↗
({
  children,
  maxWidth,
  ...layoutProps
}: Props & { maxWidth?: number })

Source from the content-addressed store, hash-verified

5import styles from './styles.module.css'
6
7export default function MyLayout({
8 children,
9 maxWidth,
10 ...layoutProps
11}: Props & { maxWidth?: number }): JSX.Element {
12 return (
13 <Layout {...layoutProps}>
14 <div className={styles.containerWrapper}>
15 <div
16 className={clsx(styles.myContainer, 'margin-vert--lg')}
17 style={maxWidth ? { maxWidth: `${maxWidth}px` } : {}}
18 >
19 <main>{children}</main>
20 </div>
21 </div>
22 </Layout>
23 )
24}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected