1 | import { __rest } from "tslib";
|
2 | import * as React from 'react';
|
3 | import { getOUIAProps } from '../../helpers';
|
4 | export const TabButton = (_a) => {
|
5 | var { children,
|
6 |
|
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 | };
|
11 | TabButton.displayName = 'TabButton';
|
12 |
|
\ | No newline at end of file |