Feat/mcp authentication (#27508)

This commit is contained in:
zxhlyh
2025-10-27 17:08:18 +08:00
committed by GitHub
parent 0ded6303c1
commit c9eed67cf6
6 changed files with 211 additions and 79 deletions

View File

@@ -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) {