1 line
915 B
JSON
1 line
915 B
JSON
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport React, { useContext } from 'react';\nimport Collapse from './Collapse';\nimport AccordionContext from './AccordionContext';\nvar AccordionCollapse = React.forwardRef(function (_ref, ref) {\n var children = _ref.children,\n eventKey = _ref.eventKey,\n props = _objectWithoutPropertiesLoose(_ref, [\"children\", \"eventKey\"]);\n\n var contextEventKey = useContext(AccordionContext);\n return React.createElement(Collapse, _extends({\n ref: ref,\n in: contextEventKey === eventKey\n }, props), React.createElement(\"div\", null, React.Children.only(children)));\n});\nAccordionCollapse.displayName = 'AccordionCollapse';\nexport default AccordionCollapse;","map":null,"metadata":{},"sourceType":"module"} |