import React from 'react' import ModalContent from './ModalContent' import ModalInput from './ModalInput' import type { Props as ContentProps } from './ModalContent' import type { Props as InputProps, InternalProps as InputInteralProps, } from './ModalInput' interface InternalProps { showInput: boolean } export type Props = ContentProps & InputProps const ModalBody: React.FC = ( props, ) => { return (
{props.children} {props.showInput && }
) } export default ModalBody