"use client";
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
const require_use_environment_context = require("../../providers/environment/use-environment-context.cjs");
const require_use_locale_context = require("../../providers/locale/use-locale-context.cjs");
let _zag_js_qr_code = require("@zag-js/qr-code");
_zag_js_qr_code = require_runtime.__toESM(_zag_js_qr_code, 1);
let react = require("react");
let _zag_js_react = require("@zag-js/react");
//#region src/components/qr-code/use-qr-code.ts
var useQrCode = (props) => {
	const id = (0, react.useId)();
	const { getRootNode } = require_use_environment_context.useEnvironmentContext();
	const { dir } = require_use_locale_context.useLocaleContext();
	const machineProps = {
		id,
		dir,
		getRootNode,
		...props
	};
	const service = (0, _zag_js_react.useMachine)(_zag_js_qr_code.machine, machineProps);
	return _zag_js_qr_code.connect(service, _zag_js_react.normalizeProps);
};
//#endregion
exports.useQrCode = useQrCode;
