import * as o from "react";
function i(c, n) {
  const { asChild: e, children: t } = c;
  if (!e) return typeof n == "function" ? n(t) : n;
  const r = o.Children.only(t);
  return o.cloneElement(r, { children: typeof n == "function" ? n(r.props.children) : n });
}
export {
  i as getSubtree
};
//# sourceMappingURL=get-subtree.js.map
