"use client";
import { composeRefs } from "../../utils/compose-refs.js";
import { ark } from "../factory.js";
import { usePresenceContext } from "../presence/use-presence-context.js";
import { useColorPickerContext } from "./use-color-picker-context.js";
import { forwardRef } from "react";
import { mergeProps } from "@zag-js/react";
import { jsx } from "react/jsx-runtime";
//#region src/components/color-picker/color-picker-content.tsx
var ColorPickerContent = forwardRef((props, ref) => {
	const colorPicker = useColorPickerContext();
	const presence = usePresenceContext();
	const mergedProps = mergeProps(colorPicker.getContentProps(), presence.getPresenceProps(), props);
	if (presence.unmounted) return null;
	return /* @__PURE__ */ jsx(ark.div, {
		...mergedProps,
		ref: composeRefs(presence.ref, ref)
	});
});
ColorPickerContent.displayName = "ColorPickerContent";
//#endregion
export { ColorPickerContent };
