import * as React from "react" import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select" import type { MerchantAPIKey } from "@/lib/services" interface MerchantSelectorProps { /** API Keys 列表 */ apiKeys: MerchantAPIKey[] /** 选中的 API Key */ selectedKeyId: string | null /** 选择回调 */ onSelect: (id: string) => void /** 是否正在加载 */ loading?: boolean } /** * 应用选择器组件 * 用于在多个应用之间切换 */ export function MerchantSelector({ apiKeys, selectedKeyId, onSelect, loading = false, }: MerchantSelectorProps) { return ( ) }