import { PropsWithChildren } from 'react' ; import { CommonSection } from '../common/CommonSection' ; import PresentationRow from './row' ; import { IPresentation } from './IPresentation' ; import { PreProcessingComponent } from '../common/PreProcessingComponent' ; type Payload = IPresentation . Payload ; export const Presentation = { Component : ( { payload } ) => { return PreProcessingComponent < Payload > ( { payload , component : Component , } ) ; } , } ; function Component ( { payload } ) { return ( < CommonSection title = "PRESENTATION" > < PresentationRow payload = { payload } /> < /CommonSection>); }