import { Fragment as p, useMemo as P, createElement as a } from "react";
import { useHTMLProps as d } from "../html/use-props.es.js";
import { useSVGProps as V } from "../svg/use-props.es.js";
import { filterProps as g } from "./utils/filter-props.es.js";
import { isSVGComponent as h } from "./utils/is-svg-component.es.js";
import { isMotionValue as M } from "../../../../../../../motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/utils/is-motion-value.es.js";
function H(r, s, o, { latestValues: t }, i, m = !1, n) {
  const l = (n ?? h(r) ? V : d)(s, t, i, r), u = g(s, typeof r == "string", m), f = r !== p ? { ...u, ...l, ref: o } : {}, { children: e } = s, c = P(() => M(e) ? e.get() : e, [e]);
  return a(r, {
    ...f,
    children: c
  });
}
export {
  H as useRender
};
//# sourceMappingURL=use-render.es.js.map
