({ intro, topper, toc, children, className }: Props)
| 10 | className?: string |
| 11 | } |
| 12 | export const ArticleGridLayout = ({ intro, topper, toc, children, className }: Props) => { |
| 13 | return ( |
| 14 | <Container className={className}> |
| 15 | {topper && <Box gridArea="topper">{topper}</Box>} |
| 16 | {toc && ( |
| 17 | <SidebarContent |
| 18 | gridArea="sidebar" |
| 19 | alignSelf="flex-start" |
| 20 | className="border-bottom border-lg-0 pb-4 mb-5 pb-xl-0 mb-xl-0" |
| 21 | > |
| 22 | {toc} |
| 23 | </SidebarContent> |
| 24 | )} |
| 25 | |
| 26 | {intro && <Box gridArea="intro">{intro}</Box>} |
| 27 | |
| 28 | <Box gridArea="content" data-search="article-body"> |
| 29 | {children} |
| 30 | </Box> |
| 31 | </Container> |
| 32 | ) |
| 33 | } |
| 34 | |
| 35 | const Container = styled(Box)` |
| 36 | max-width: 720px; |
nothing calls this directly
no outgoing calls
no test coverage detected