import r from "react";
function u(t) {
  return r.isValidElement(t) && t.type === r.Fragment;
}
function a(t, n = []) {
  return r.Children.forEach(t, (l) => {
    u(l) ? a(l.props.children, n) : n.push(l);
  }), n;
}
function o(t, {
  wrapper: n = "li"
} = {}) {
  return a(t).filter((e) => e !== null).map((e, f) => {
    if (r.isValidElement(e) && e.type === n)
      return e;
    const i = r.isValidElement(e) && e.key != null ? e.key : f;
    return r.createElement(n, {
      key: i
    }, e);
  });
}
export {
  o as w
};
//# sourceMappingURL=helpers-D56OHkFI.js.map
