"use client";
const require_factory = require("../factory.cjs");
const require_use_swap_context = require("./use-swap-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/swap/swap-root-provider.tsx
var SwapRootProvider = (0, react.forwardRef)((props, ref) => {
	const { value, children, ...restProps } = props;
	const mergedProps = (0, _zag_js_react.mergeProps)(value.getRootProps(), restProps);
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_use_swap_context.SwapProvider, {
		value,
		children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.ark.span, {
			...mergedProps,
			ref,
			children
		})
	});
});
SwapRootProvider.displayName = "SwapRootProvider";
//#endregion
exports.SwapRootProvider = SwapRootProvider;
