File size: 583 Bytes
f1dd159 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | import type { ReactNode } from "react";
export function PageHeader({ title, description, actions }: { title: string; description: string; actions?: ReactNode }) {
return (
<header className="flex min-h-8 shrink-0 flex-col gap-5 sm:flex-row sm:items-center sm:justify-between">
<div className="min-w-0">
<h1 className="text-xl font-medium leading-7 text-foreground">{title}</h1>
<p className="sr-only">{description}</p>
</div>
{actions ? <div className="flex shrink-0 flex-wrap items-center gap-2">{actions}</div> : null}
</header>
);
}
|