| 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> | |
| ); | |
| } | |