"use client"; export type QuoteProviderId = "mothership" | "priority1"; interface QuoteProviderSwitchProps { value: QuoteProviderId; onChange: (value: QuoteProviderId) => void; disabled?: boolean; } /** 卡派查价 — Mothership / Priority1 数据源切换 */ export function QuoteProviderSwitch({ value, onChange, disabled, }: QuoteProviderSwitchProps) { const tabs: Array<{ id: QuoteProviderId; label: string; desc: string }> = [ { id: "mothership", label: "MotherShip", desc: "四档实时报价" }, { id: "priority1", label: "Priority1", desc: "官网模拟填表" }, ]; return (
{tabs.map((tab) => ( ))}
); }