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