mirror of
https://github.com/VaalaCat/frp-panel.git
synced 2025-10-05 23:37:09 +08:00
19 lines
544 B
TypeScript
19 lines
544 B
TypeScript
import React from 'react'
|
|
import { Combobox } from './combobox'
|
|
|
|
export interface ProxySelectorProps {
|
|
proxyName?: string
|
|
setProxyname: (proxyName: string) => void
|
|
proxyNames: string[]
|
|
}
|
|
|
|
export const ProxySelector: React.FC<ProxySelectorProps> = ({ proxyName, proxyNames ,setProxyname }) => {
|
|
return <Combobox
|
|
dataList={proxyNames.map((name) => ({ value: name, label: name }))}
|
|
value={proxyName}
|
|
setValue={setProxyname}
|
|
notFoundText="未找到隧道"
|
|
placeholder="隧道名称"
|
|
/>
|
|
}
|