import type { ComponentType, ReactNode } from 'react' type PageHeaderProps = { title: string description?: string icon?: ComponentType<{ className?: string }> actions?: ReactNode } /** * Section heading shared by the dashboard's route layouts. * * The same icon plus heading plus description block was written out four * times, and community/page.tsx had drifted: it kept an unconditional * text-3xl and no mobile padding step while every other section had moved to * a responsive size. One definition makes that class of drift impossible. */ export default function PageHeader({ title, description, icon: Icon, actions, }: PageHeaderProps) { return (
{description}
)}