"use client";
import { useAccordionContext } from "./use-accordion-context.js";
import { createSplitProps } from "../../utils/create-split-props.js";
import { useAccordionItemPropsContext } from "./use-accordion-item-props-context.js";
import { CollapsibleContent } from "../collapsible/collapsible-content.js";
import { forwardRef } from "react";
import { mergeProps } from "@zag-js/react";
import { jsx } from "react/jsx-runtime";
//#region src/components/accordion/accordion-item-content.tsx
var splitVisibilityProps = createSplitProps();
var AccordionItemContent = forwardRef((props, ref) => {
	const accordion = useAccordionContext();
	const itemProps = useAccordionItemPropsContext();
	const [, itemContentProps] = splitVisibilityProps(accordion.getItemContentProps(itemProps), ["hidden", "data-state"]);
	return /* @__PURE__ */ jsx(CollapsibleContent, {
		ref,
		...mergeProps(itemContentProps, props)
	});
});
AccordionItemContent.displayName = "AccordionItemContent";
//#endregion
export { AccordionItemContent };
