({page, children, isLongForm, isWide}: ArticleProps)
| 427 | } |
| 428 | |
| 429 | function PostListContainer({page, children, isLongForm, isWide}: ArticleProps) { |
| 430 | return ( |
| 431 | <div className={articleStyles({isLongForm, isWide})}> |
| 432 | {page.tableOfContents?.[0]?.level === 1 && ( |
| 433 | <H1 isLongForm={isLongForm}>{page.tableOfContents?.[0].title}</H1> |
| 434 | )} |
| 435 | {children} |
| 436 | </div> |
| 437 | ); |
| 438 | } |
| 439 | |
| 440 | function isExternalUrl(url: string): boolean { |
| 441 | return url.startsWith('http://') || url.startsWith('https://'); |
nothing calls this directly
no outgoing calls
no test coverage detected