| 1 |
"use strict"; |
| 2 |
Object.defineProperty(exports, "__esModule", { value: true }); |
| 3 |
exports.ModalBody = void 0; |
| 4 |
const tslib_1 = require("tslib"); |
| 5 |
const jsx_runtime_1 = require("react/jsx-runtime"); |
| 6 |
const react_styles_1 = require("@patternfly/react-styles"); |
| 7 |
const modal_box_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/ModalBox/modal-box")); |
| 8 |
const ModalBody = (_a) => { |
| 9 |
var { children, className, 'aria-label': ariaLabel, role } = _a, props = tslib_1.__rest(_a, ["children", "className", 'aria-label', "role"]); |
| 10 |
const defaultModalBodyRole = ariaLabel ? 'region' : undefined; |
| 11 |
return ((0, jsx_runtime_1.jsx)("div", Object.assign({ "aria-label": ariaLabel, role: role || defaultModalBodyRole, className: (0, react_styles_1.css)(modal_box_1.default.modalBoxBody, className) }, props, { children: children }))); |
| 12 |
}; |
| 13 |
exports.ModalBody = ModalBody; |
| 14 |
exports.ModalBody.displayName = 'ModalBody'; |
| 15 |
//# sourceMappingURL=ModalBody.js.map |