MCPcopy Create free account
hub / github.com/adobe/react-spectrum / PostListContainer

Function PostListContainer

packages/dev/s2-docs/src/Layout.tsx:429–438  ·  view source on GitHub ↗
({page, children, isLongForm, isWide}: ArticleProps)

Source from the content-addressed store, hash-verified

427}
428
429function 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
440function isExternalUrl(url: string): boolean {
441 return url.startsWith('http://') || url.startsWith('https://');

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected