UNPKG

670 BJavaScriptView Raw
1import { __rest } from "tslib";
2import * as React from 'react';
3import { getOUIAProps } from '../../helpers';
4export const TabButton = (_a) => {
5 var { children,
6 // eslint-disable-next-line @typescript-eslint/no-unused-vars
7 tabContentRef, ouiaId, parentInnerRef, ouiaSafe } = _a, props = __rest(_a, ["children", "tabContentRef", "ouiaId", "parentInnerRef", "ouiaSafe"]);
8 const Component = (props.href ? 'a' : 'button');
9 return (React.createElement(Component, Object.assign({ ref: parentInnerRef }, getOUIAProps(TabButton.displayName, ouiaId, ouiaSafe), props), children));
10};
11TabButton.displayName = 'TabButton';
12//# sourceMappingURL=TabButton.js.map
\No newline at end of file