"use client";
const require_compose_refs = require("../../utils/compose-refs.cjs");
const require_factory = require("../factory.cjs");
const require_use_presence_context = require("../presence/use-presence-context.cjs");
const require_use_date_picker_context = require("./use-date-picker-context.cjs");
let react = require("react");
let _zag_js_react = require("@zag-js/react");
let react_jsx_runtime = require("react/jsx-runtime");
//#region src/components/date-picker/date-picker-content.tsx
var DatePickerContent = (0, react.forwardRef)((props, ref) => {
	const datePicker = require_use_date_picker_context.useDatePickerContext();
	const presence = require_use_presence_context.usePresenceContext();
	const mergedProps = (0, _zag_js_react.mergeProps)(datePicker.getContentProps(), presence.getPresenceProps(), props);
	if (presence.unmounted) return null;
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.ark.div, {
		...mergedProps,
		ref: require_compose_refs.composeRefs(presence.ref, ref)
	});
});
DatePickerContent.displayName = "DatePickerContent";
//#endregion
exports.DatePickerContent = DatePickerContent;
