Spaces:
Running
Running
File size: 828 Bytes
9243cff |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
interface PageHeaderProps {
title: string
description?: string
children?: React.ReactNode
}
export function PageHeader({ title, description, children }: PageHeaderProps) {
return (
<div className="container mx-auto px-4 sm:px-6 py-6 border-b bg-muted/30">
<div className="flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4">
<div>
<h2 className="text-2xl sm:text-3xl font-bold font-heading text-foreground">
{title}
</h2>
{description && (
<p className="text-base text-muted-foreground mt-1">
{description}
</p>
)}
</div>
{children && (
<div className="flex items-center gap-2">
{children}
</div>
)}
</div>
</div>
)
}
|