import { ReactNode } from 'react' interface Props { title: string description?: string children?: ReactNode } interface FormSection extends React.FC { Divider: React.FC } const FormSection: FormSection = ({ title, description, children }: Props) => { return (

{title}

{description && (

{description}

)}
{children}
) } FormSection.Divider = () => { return
} export default FormSection