"use client"; type Props = { title: string; subtitle?: string; showPrint?: boolean; }; export function PageHeader({ title, subtitle, showPrint = true }: Props) { return (
{title}
{subtitle &&
{subtitle}
}
{showPrint && (
window.print()} className="rounded-full border border-slate-300 bg-white px-4 py-2 text-sm font-medium text-slate-700 shadow-sm transition hover:bg-slate-50" > Drucken
)}
); }