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