"use client";
import { ark } from "../factory.js";
import { useSwitchContext } from "./use-switch-context.js";
import { forwardRef } from "react";
import { mergeProps } from "@zag-js/react";
import { jsx } from "react/jsx-runtime";
//#region src/components/switch/switch-control.tsx
var SwitchControl = forwardRef((props, ref) => {
	const mergedProps = mergeProps(useSwitchContext().getControlProps(), props);
	return /* @__PURE__ */ jsx(ark.span, {
		...mergedProps,
		ref
	});
});
SwitchControl.displayName = "SwitchControl";
//#endregion
export { SwitchControl };
