Debian Codegraph @

node/@patternfly/react-core/dist/js/components/Tabs/TabButton.js

raw
1 "use strict";
2 Object.defineProperty(exports, "__esModule", { value: true });
3 exports.TabButton = void 0;
4 const tslib_1 = require("tslib");
5 const jsx_runtime_1 = require("react/jsx-runtime");
6 const helpers_1 = require("../../helpers");
7 const TabButton = (_a) => {
8 var { children,
9 // eslint-disable-next-line @typescript-eslint/no-unused-vars
10 tabContentRef, ouiaId, parentInnerRef, ouiaSafe } = _a, props = tslib_1.__rest(_a, ["children", "tabContentRef", "ouiaId", "parentInnerRef", "ouiaSafe"]);
11 const Component = (props.href ? 'a' : 'button');
12 return ((0, jsx_runtime_1.jsx)(Component, Object.assign({}, (!props.href && { type: 'button' }), { ref: parentInnerRef }, (0, helpers_1.getOUIAProps)(exports.TabButton.displayName, ouiaId, ouiaSafe), props, { children: children })));
13 };
14 exports.TabButton = TabButton;
15 exports.TabButton.displayName = 'TabButton';
16 //# sourceMappingURL=TabButton.js.map