"use client";
import * as React from "react";
import { useRenderElement } from "../../utils/useRenderElement.js";
import { useAccordionItemContext } from "../item/AccordionItemContext.js";
import { accordionStateAttributesMapping } from "../item/stateAttributesMapping.js";
const AccordionHeader = /* @__PURE__ */ React.forwardRef(function AccordionHeader2(componentProps, forwardedRef) {
  const {
    render,
    className,
    ...elementProps
  } = componentProps;
  const {
    state
  } = useAccordionItemContext();
  const element = useRenderElement("h3", componentProps, {
    state,
    ref: forwardedRef,
    props: elementProps,
    stateAttributesMapping: accordionStateAttributesMapping
  });
  return element;
});
if (process.env.NODE_ENV !== "production") AccordionHeader.displayName = "AccordionHeader";
export {
  AccordionHeader
};
//# sourceMappingURL=AccordionHeader.js.map
