import { Tooltip } from 'antd';
import { memo } from 'react';
import { TabLabelProps } from './TabLabel.interfaces';
function TabLabel({
label,
isDisabled,
tooltipText,
}: TabLabelProps): JSX.Element {
const currentLabel = {label};
if (isDisabled) {
return (
{currentLabel}
);
}
return currentLabel;
}
export default memo(TabLabel);