| 11 | export type DocTableContent = DocTableContentGroup[]; |
| 12 | |
| 13 | export function DocContent({ |
| 14 | children, |
| 15 | title, |
| 16 | group, |
| 17 | }: PropsWithChildren<{ title?: string; group?: string }>) { |
| 18 | return ( |
| 19 | <> |
| 20 | {title && ( |
| 21 | <div className="-mx-4 mb-4 border-b px-4 pb-4"> |
| 22 | <div className="max-w-[800px]"> |
| 23 | {group && <span className="text-sm">{group}</span>} |
| 24 | <h1 className="text-2xl font-semibold">{title}</h1> |
| 25 | </div> |
| 26 | </div> |
| 27 | )} |
| 28 | <article className={cn("mdx-content max-w-[800px]", { "mt-4": !title })}> |
| 29 | {children} |
| 30 | </article> |
| 31 | </> |
| 32 | ); |
| 33 | } |
| 34 | |
| 35 | export function DocLayout({ |
| 36 | children, |