1 | import { __rest } from "tslib";
|
2 | import * as React from 'react';
|
3 | import AngleRightIcon from '@patternfly/react-icons/dist/esm/icons/angle-right-icon';
|
4 | import AngleDownIcon from '@patternfly/react-icons/dist/esm/icons/angle-down-icon';
|
5 | import { Button } from '../Button';
|
6 | export const ClipboardCopyToggle = (_a) => {
|
7 | var { onClick, id, textId, contentId, isExpanded = false } = _a, props = __rest(_a, ["onClick", "id", "textId", "contentId", "isExpanded"]);
|
8 | return (React.createElement(Button, Object.assign({ type: "button", variant: "control", onClick: onClick, id: id, "aria-labelledby": `${id} ${textId}`, "aria-controls": `${id} ${contentId}`, "aria-expanded": isExpanded }, props), isExpanded ? React.createElement(AngleDownIcon, { "aria-hidden": "true" }) : React.createElement(AngleRightIcon, { "aria-hidden": "true" })));
|
9 | };
|
10 | ClipboardCopyToggle.displayName = 'ClipboardCopyToggle';
|
11 |
|
\ | No newline at end of file |