@anoki/fse-ui
Version:
FSE UI components library
12 lines (11 loc) • 336 B
JavaScript
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=index.es632.js.map