"use client";
import { createSplitProps } from "../../utils/create-split-props.js";
import { ark } from "../factory.js";
import { useQrCodeContext } from "./use-qr-code-context.js";
import { forwardRef } from "react";
import { mergeProps } from "@zag-js/react";
import { jsx } from "react/jsx-runtime";
//#region src/components/qr-code/qr-code-download-trigger.tsx
var splitDownloadTriggerProps = createSplitProps();
var QrCodeDownloadTrigger = forwardRef((props, ref) => {
	const [downloadTriggerProps, localProps] = splitDownloadTriggerProps(props, [
		"fileName",
		"mimeType",
		"quality"
	]);
	const mergedProps = mergeProps(useQrCodeContext().getDownloadTriggerProps(downloadTriggerProps), localProps);
	return /* @__PURE__ */ jsx(ark.button, {
		...mergedProps,
		ref
	});
});
QrCodeDownloadTrigger.displayName = "QrCodeDownloadTrigger";
//#endregion
export { QrCodeDownloadTrigger };
