"use client";
import { createSplitProps } from "../../utils/create-split-props.js";
import { ark } from "../factory.js";
import { useDatePickerContext } from "./use-date-picker-context.js";
import { forwardRef } from "react";
import { mergeProps } from "@zag-js/react";
import { jsx } from "react/jsx-runtime";
//#region src/components/date-picker/date-picker-preset-trigger.tsx
var splitPresetTriggerProps = createSplitProps();
var DatePickerPresetTrigger = forwardRef((props, ref) => {
	const [presetTriggerProps, localProps] = splitPresetTriggerProps(props, ["value"]);
	const mergedProps = mergeProps(useDatePickerContext().getPresetTriggerProps(presetTriggerProps), localProps);
	return /* @__PURE__ */ jsx(ark.button, {
		...mergedProps,
		ref
	});
});
DatePickerPresetTrigger.displayName = "DatePickerPresetTrigger";
//#endregion
export { DatePickerPresetTrigger };
