import { FC } from 'react' interface ISectionContainer extends FC { id: string title?: string monoFont?: boolean } type RefSubLayoutSubComponents = { Section: ISectionContainer Details: ISectionDetails Examples: ISectionExamples } type RefSubLayoutType = {} const RefSubLayout: FC & RefSubLayoutSubComponents = (props) => { return (
{props.children}
) } const Section: FC = (props) => { return (

{props.title}

{props.children}
) } interface ISectionDetails extends FC {} const Details: FC = (props) => { return
{props.children}
} interface ISectionExamples extends FC {} const Examples: FC = (props) => { return (
{props.children}
) } // @ts-ignore // needs typing with FC type RefSubLayout.Section = Section RefSubLayout.Details = Details RefSubLayout.Examples = Examples export default RefSubLayout