Feat/mcp authentication (#27508)
This commit is contained in:
@@ -11,12 +11,14 @@ type Option = {
|
||||
type TabSliderProps = {
|
||||
className?: string
|
||||
value: string
|
||||
itemClassName?: string | ((active: boolean) => string)
|
||||
onChange: (v: string) => void
|
||||
options: Option[]
|
||||
}
|
||||
|
||||
const TabSlider: FC<TabSliderProps> = ({
|
||||
className,
|
||||
itemClassName,
|
||||
value,
|
||||
onChange,
|
||||
options,
|
||||
@@ -58,6 +60,7 @@ const TabSlider: FC<TabSliderProps> = ({
|
||||
index === activeIndex
|
||||
? 'text-text-primary'
|
||||
: 'text-text-tertiary',
|
||||
typeof itemClassName === 'function' ? itemClassName(index === activeIndex) : itemClassName,
|
||||
)}
|
||||
onClick={() => {
|
||||
if (index !== activeIndex) {
|
||||
|
||||
Reference in New Issue
Block a user