general-eval-card / components /page-header.tsx
Avijit Ghosh
add logo and fix navigation
9243cff
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>
)
}