| 1 |
"use strict"; |
| 2 |
Object.defineProperty(exports, "__esModule", { value: true }); |
| 3 |
exports.ClipboardCopyToggle = void 0; |
| 4 |
const tslib_1 = require("tslib"); |
| 5 |
const jsx_runtime_1 = require("react/jsx-runtime"); |
| 6 |
const clipboard_copy_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/ClipboardCopy/clipboard-copy")); |
| 7 |
const react_styles_1 = require("@patternfly/react-styles"); |
| 8 |
const rh_microns_caret_down_icon_1 = tslib_1.__importDefault(require('@patternfly/react-icons/dist/js/icons/rh-microns-caret-down-icon')); |
| 9 |
const Button_1 = require("../Button"); |
| 10 |
const ClipboardCopyToggle = (_a) => { |
| 11 |
var { onClick, id, contentId, isExpanded = false } = _a, props = tslib_1.__rest(_a, ["onClick", "id", "contentId", "isExpanded"]); |
| 12 |
return ((0, jsx_runtime_1.jsx)(Button_1.Button, Object.assign({ type: "button", variant: "control", onClick: onClick, id: id, "aria-controls": isExpanded ? contentId : undefined, "aria-expanded": isExpanded }, props, { icon: (0, jsx_runtime_1.jsx)("div", { className: (0, react_styles_1.css)(clipboard_copy_1.default.clipboardCopyToggleIcon), children: (0, jsx_runtime_1.jsx)(rh_microns_caret_down_icon_1.default, {}) }) }))); |
| 13 |
}; |
| 14 |
exports.ClipboardCopyToggle = ClipboardCopyToggle; |
| 15 |
exports.ClipboardCopyToggle.displayName = 'ClipboardCopyToggle'; |
| 16 |
//# sourceMappingURL=ClipboardCopyToggle.js.map |