"use client";
import { E as c, b as t, u as f } from "./useRenderElement-DNB2vtF1.js";
import { u as E } from "./useCompositeItem-D00ALGkT.js";
function A(e) {
  const {
    render: d,
    className: l,
    state: s = c,
    props: o = t,
    refs: r = t,
    metadata: a,
    stateAttributesMapping: m,
    tag: p = "div",
    ...i
  } = e, {
    compositeProps: n,
    compositeRef: u
  } = E({
    metadata: a
  });
  return f(p, e, {
    state: s,
    ref: [...r, u],
    props: [n, ...o, i],
    stateAttributesMapping: m
  });
}
export {
  A as C
};
