/** Kopfbereich einer Seite: Titel, Erläuterung, Handlungen. */ import { ChevronLeft } from 'lucide-react'; import type { ReactNode } from 'react'; import { Button } from '@/components/ui'; import { cn } from '@/lib/utils'; export function PageHeader({ title, description, actions, onBack, backLabel = 'Zurück', className, }: { readonly title: ReactNode; readonly description?: ReactNode | undefined; readonly actions?: ReactNode | undefined; readonly onBack?: (() => void) | undefined; readonly backLabel?: string | undefined; readonly className?: string | undefined; }) { return (
{onBack ? ( ) : null}

{title}

{description ? (

{description}

) : null}
{actions ?
{actions}
: null}
); }