var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=OL;var _defineProperty2=_interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _react=_interopRequireDefault(require("react"));var _jsxRuntime=require("react/jsx-runtime");var _excluded=["children","mb","start"];function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable;})),keys.push.apply(keys,symbols);}return keys;}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(source),!0).forEach(function(key){(0,_defineProperty2.default)(target,key,source[key]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key));});}return target;}function OL(_ref){var children=_ref.children,mb=_ref.mb,_ref$start=_ref.start,start=_ref$start===void 0?1:_ref$start,props=(0,_objectWithoutProperties2.default)(_ref,_excluded);var index=start;console.log(children,'children,');children=_react.default.Children.map(children,function(child){if(typeof child!=='string'){var _child$props;index++;return _react.default.cloneElement(child,_objectSpread({ol:true,index:index},child.props),child==null?void 0:(_child$props=child.props)==null?void 0:_child$props.children);}return child;});return(0,_jsxRuntime.jsx)("ol",_objectSpread(_objectSpread({},props),{},{children:children}));}
//# sourceMappingURL=index.js.map