import React from 'react' import { Box, BoxProps } from '../../atoms/box/index.js' import { Button } from '../../atoms/button/index.js' import { Icon } from '../../atoms/icon/index.js' import { Label } from '../../atoms/label/index.js' import { Text } from '../../atoms/text/index.js' import { H5 } from '../../atoms/typography/index.js' import { ModalProps } from './modal-props.js' import { ModalStyled } from './modal-styled.jsx' /** * Modal which can be rendered inline instead of a "modal" * * @memberof Modal * @component * @hideconstructor * @private * @section design-system */ export 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