2025-06-22 00:12:25 +03:00

11 lines
684 B
JavaScript

import { jsx as _jsx } from "react/jsx-runtime";
import { Button } from "../Button";
import { CopyText } from "../CopyText";
import { Icon } from "../../icons";
export var InputCopyButton = function (_a) {
var textToCopy = _a.textToCopy, fieldSize = _a.fieldSize, showLabel = _a.showLabel;
return (_jsx(CopyText, { textToCopy: textToCopy, doneLabel: "Copied", children: _jsx(Button, { variant: "tertiary", size: fieldSize, icon: _jsx(Icon.Copy01, {}), iconPosition: "left", disabled: !textToCopy, type: "button", onClick: function (e) {
e.preventDefault();
}, children: showLabel ? "Copy" : "" }) }));
};
//# sourceMappingURL=InputCopyButton.js.map