"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const React = tslib_1.__importStar(require("react"));
const react_styles_1 = require("@patternfly/react-styles");
const accordion_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/Accordion/accordion"));
const AccordionContext_1 = require("./AccordionContext");
exports.AccordionContent = (_a) => {
    var { className = '', children = null, id = '', isHidden = false, isFixed = false, 'aria-label': ariaLabel = '', component } = _a, props = tslib_1.__rest(_a, ["className", "children", "id", "isHidden", "isFixed", 'aria-label', "component"]);
    return (React.createElement(AccordionContext_1.AccordionContext.Consumer, null, ({ ContentContainer }) => {
        const Container = component || ContentContainer;
        return (React.createElement(Container, Object.assign({ id: id, className: react_styles_1.css(accordion_1.default.accordionExpandedContent, isFixed && accordion_1.default.modifiers.fixed, !isHidden && accordion_1.default.modifiers.expanded, className), hidden: isHidden, "aria-label": ariaLabel }, props),
            React.createElement("div", { className: react_styles_1.css(accordion_1.default.accordionExpandedContentBody) }, children)));
    }));
};
//# sourceMappingURL=AccordionContent.js.map