2023-07-15 17:46:19 +03:00
|
|
|
import type { TabProps } from 'react-tabs';
|
2023-07-25 20:27:29 +03:00
|
|
|
import { Tab } from 'react-tabs';
|
2023-07-15 17:46:19 +03:00
|
|
|
|
2023-07-25 20:27:29 +03:00
|
|
|
function ConceptTab({ children, className, ...otherProps }: TabProps) {
|
2023-07-15 17:46:19 +03:00
|
|
|
return (
|
2023-07-25 20:27:29 +03:00
|
|
|
<Tab
|
2023-07-26 23:11:00 +03:00
|
|
|
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
2023-07-30 00:47:07 +03:00
|
|
|
className={`px-2 py-1 border-r-2 text-sm hover:cursor-pointer clr-tab whitespace-nowrap ${className}`}
|
2023-07-15 17:46:19 +03:00
|
|
|
{...otherProps}
|
|
|
|
>
|
|
|
|
{children}
|
|
|
|
</Tab>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
ConceptTab.tabsRole = 'Tab';
|
|
|
|
|
2023-07-25 20:27:29 +03:00
|
|
|
export default ConceptTab;
|