| 1 |
import { __rest } from "tslib"; |
| 2 |
import { jsx as _jsx } from "react/jsx-runtime"; |
| 3 |
import { css } from '@patternfly/react-styles'; |
| 4 |
import styles from '@patternfly/react-styles/css/components/ModalBox/modal-box.mjs'; |
| 5 |
export const ModalBody = (_a) => { |
| 6 |
var { children, className, 'aria-label': ariaLabel, role } = _a, props = __rest(_a, ["children", "className", 'aria-label', "role"]); |
| 7 |
const defaultModalBodyRole = ariaLabel ? 'region' : undefined; |
| 8 |
return (_jsx("div", Object.assign({ "aria-label": ariaLabel, role: role || defaultModalBodyRole, className: css(styles.modalBoxBody, className) }, props, { children: children }))); |
| 9 |
}; |
| 10 |
ModalBody.displayName = 'ModalBody'; |
| 11 |
//# sourceMappingURL=ModalBody.js.map |