"use client";
const require_factory = require("../factory.cjs");
const require_use_toggle_context = require("./use-toggle-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/toggle/toggle-indicator.tsx
var ToggleIndicator = (0, react.forwardRef)((props, ref) => {
	const { children, fallback, ...restProps } = props;
	const toggle = require_use_toggle_context.useToggleContext();
	const mergedProps = (0, _zag_js_react.mergeProps)(toggle.getIndicatorProps(), restProps);
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.ark.div, {
		...mergedProps,
		ref,
		children: toggle.pressed ? children : fallback
	});
});
ToggleIndicator.displayName = "ToggleIndicator";
//#endregion
exports.ToggleIndicator = ToggleIndicator;
