/*! ratio-ui · design system for knowledge sharing · https://github.com/losol/ratio-ui · (c) 2026 Losol AS · MPL-2.0 */
import { Check, Copy } from "../../icons/index.js";
import "react";
import { jsx } from "react/jsx-runtime";
//#region src/core/CopyStateIcon/CopyStateIcon.tsx
/**
* The Copy → Check icon swap with a teal "pop" on success. Presentational
* only — pair it with `useCopyToClipboard`. Used by `CopyButton` (standalone
* affordance) and `CopyLabel` (whole-row button, which can't nest a button).
*
* @beta This component is experimental — prop shape may change before release.
*/
var CopyStateIcon = ({ copied, size = 18 }) => copied ? /* @__PURE__ */ jsx(Check, {
	size,
	strokeWidth: 2.4,
	className: "text-primary animate-pop"
}) : /* @__PURE__ */ jsx(Copy, {
	size,
	strokeWidth: 2,
	className: "text-text-muted"
});
CopyStateIcon.displayName = "CopyStateIcon";
//#endregion
export { CopyStateIcon };

//# sourceMappingURL=CopyStateIcon.js.map