import type { ReactNode } from 'react' import { PageBackButton } from './PageBackButton' type PageHeaderProps = { title: string description?: string backTo?: string backLabel?: string onBack?: () => void actions?: ReactNode className?: string } export function PageHeader({ title, description, backTo, backLabel, onBack, actions, className, }: PageHeaderProps) { const showBack = Boolean(backTo || onBack) return (
{showBack && }

{title}

{description ?

{description}

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