({
children,
maxWidth,
...layoutProps
}: Props & { maxWidth?: number })
| 5 | import styles from './styles.module.css' |
| 6 | |
| 7 | export 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected