BeatSense / frontend /src /components /layout /page-header.tsx
devrup404's picture
BeatSense: unified FastAPI + Next.js deployment
f4102c2
Raw
History Blame Contribute Delete
482 Bytes
export function PageHeader({
title,
subtitle,
action,
}: {
title: string;
subtitle?: string;
action?: React.ReactNode;
}) {
return (
<div className="flex flex-wrap items-end justify-between gap-4 border-b border-border pb-4">
<div>
<h1 className="text-2xl font-bold tracking-tight">{title}</h1>
{subtitle && (
<p className="mt-1 text-sm text-muted-foreground">{subtitle}</p>
)}
</div>
{action}
</div>
);
}