import React from 'react' import { BoxProps, Box, H5, Text, Button, Icon, Label } from '../..' import { ModalProps } from './modal-props' import { ModalStyled } from './modal-styled' /** * Modal which can be rendered inline instead of a "modal" * * @memberof Modal * @component * @hideconstructor * @private * @section design-system */ const ModalInline: React.FC> = (props) => { const { title, subTitle, variant, onClose, children, buttons, label, icon, ...boxProps } = props return ( {label && ( )} {title &&
{title}
} {onClose && ( )} {subTitle && {subTitle}} {children} {buttons && buttons.length && ( {buttons.map((buttonProps, key) => ( // eslint-disable-next-line react/no-array-index-key