12 lines
541 B
TypeScript
12 lines
541 B
TypeScript
|
|
export function PageHeader({ title, description, actions }: { title: string; description?: string; actions?: React.ReactNode }) {
|
||
|
|
return (
|
||
|
|
<div className="flex items-start justify-between gap-4 border-b border-zinc-800/70 px-8 py-6">
|
||
|
|
<div>
|
||
|
|
<h1 className="text-2xl font-semibold tracking-tight text-zinc-100">{title}</h1>
|
||
|
|
{description && <p className="mt-1 text-sm text-muted-foreground">{description}</p>}
|
||
|
|
</div>
|
||
|
|
{actions && <div className="flex items-center gap-2">{actions}</div>}
|
||
|
|
</div>
|
||
|
|
);
|
||
|
|
}
|