"use strict";const r=require("react");function u(t){return r.isValidElement(t)&&t.type===r.Fragment}function i(t,n=[]){return r.Children.forEach(t,l=>{u(l)?i(l.props.children,n):n.push(l)}),n}function f(t,{wrapper:n="li"}={}){return i(t).filter(e=>e!==null).map((e,a)=>{if(r.isValidElement(e)&&e.type===n)return e;const s=r.isValidElement(e)&&e.key!=null?e.key:a;return r.createElement(n,{key:s},e)})}exports.wrapChildren=f;
//# sourceMappingURL=helpers-BD5fFZi-.cjs.map
