| 1 |
import { __rest } from "tslib"; |
| 2 |
import { jsx as _jsx } from "react/jsx-runtime"; |
| 3 |
import { getOUIAProps } from '../../helpers'; |
| 4 |
export 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 (_jsx(Component, Object.assign({}, (!props.href && { type: 'button' }), { ref: parentInnerRef }, getOUIAProps(TabButton.displayName, ouiaId, ouiaSafe), props, { children: children }))); |
| 10 |
}; |
| 11 |
TabButton.displayName = 'TabButton'; |
| 12 |
//# sourceMappingURL=TabButton.js.map |