Function
PageHeader
({
title,
children,
className,
}: {
title: string
children?: ReactNode
className?: string
})
Source from the content-addressed store, hash-verified
| 2 | import { ReactNode } from "react" |
| 3 | |
| 4 | export function PageHeader({ |
| 5 | title, |
| 6 | children, |
| 7 | className, |
| 8 | }: { |
| 9 | title: string |
| 10 | children?: ReactNode |
| 11 | className?: string |
| 12 | }) { |
| 13 | return ( |
| 14 | <div |
| 15 | className={cn("mb-8 flex gap-4 items-center justify-between", className)} |
| 16 | > |
| 17 | <h1 className="text-2xl font-semibold">{title}</h1> |
| 18 | {children && <div>{children}</div>} |
| 19 | </div> |
| 20 | ) |
| 21 | } |
Callers
nothing calls this directly
Tested by
no test coverage detected