"use client";
import { ark } from "../factory.js";
import { useFloatingPanelContext } from "./use-floating-panel-context.js";
import { forwardRef } from "react";
import { mergeProps } from "@zag-js/react";
import { jsx } from "react/jsx-runtime";
//#region src/components/floating-panel/floating-panel-close-trigger.tsx
var FloatingPanelCloseTrigger = forwardRef((props, ref) => {
	const mergedProps = mergeProps(useFloatingPanelContext().getCloseTriggerProps(), props);
	return /* @__PURE__ */ jsx(ark.button, {
		...mergedProps,
		ref
	});
});
FloatingPanelCloseTrigger.displayName = "FloatingPanelCloseTrigger";
//#endregion
export { FloatingPanelCloseTrigger };
