import React from 'react'; import type { ReactNode } from 'react'; import InfoTooltip from './InfoTooltip'; interface SectionProps { title?: string; tooltip?: string; children: ReactNode; } const Section = ({ title, tooltip, children }: SectionProps): JSX.Element => (
{title && (

{title} {tooltip && }

)} {children}
); export default Section;