"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "default", {
    enumerable: true,
    get: function() {
        return _default;
    }
});
const _jsxruntime = require("react/jsx-runtime");
const _react = require("react");
const _collapseContext = require("./collapseContext");
const _panel = require("./panel");
const CollapseRoot = (props)=>{
    const [activeKey, setActiveKey] = (0, _react.useState)(props.activeKey ?? "");
    return /*#__PURE__*/ (0, _jsxruntime.jsx)(_collapseContext.CollapseContext.Provider, {
        value: {
            activeKey,
            setActiveKey
        },
        children: props.children
    });
};
const Collapse = CollapseRoot;
Collapse.panel = _panel.Panel;
const _default = Collapse;

//# sourceMappingURL=collapse.js.map