/* * SPDX-FileCopyrightText: 2026 Coffey Labs * * SPDX-License-Identifier: AGPL-3.0-only */ import type { ReactNode } from 'react'; import { IconTile } from '@/components/common/IconTile'; /** * The top of every page: the section's tile, a title that says where you are, * a line on what it's for, and the page's own actions on the right. */ export function PageHeader({ icon, title, subtitle, leading, actions, }: { icon?: string | null; title: ReactNode; subtitle?: ReactNode; leading?: ReactNode; actions?: ReactNode; }) { return (
{leading} {icon && }

{title}

{subtitle &&

{subtitle}

}
{actions &&
{actions}
}
); }