import { ForwardRefExoticComponent, PropsWithChildren, RefAttributes, forwardRef, } from 'react'; import Dialog from './Dialog'; import DialogHeader from './DialogHeader'; const DialogWithHeader: ForwardRefExoticComponent< PropsWithChildren & RefAttributes > = forwardRef( (props, ref) => { const { children, dialogProps, header, loading, openInitially, showClose, wide, } = props; return ( {header} {children} ); }, ); DialogWithHeader.displayName = 'DialogWithHeader'; export default DialogWithHeader;