import { ReactNode } from "react"; type SettingsSectionProps = { icon?: ReactNode; title: string; description?: string; action?: ReactNode; children: ReactNode; }; export function SettingsSection({ icon, title, description, action, children, }: SettingsSectionProps) { return (

{icon} {title}

{description &&

{description}

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