import { ReactNode } from 'react'; interface SectionAction { label: string; onClick: () => void; } interface SectionProps { title: string; children: ReactNode; action?: SectionAction; } export function Section({ title, children, action }: SectionProps) { return (

{title}

{action && ( )}
{children}
); }