/** * dashboard-client/src/components/ModelBadge.tsx — model + provider + rates. * * Shows the active model name, provider, and input/output rates. * Tooltips copied verbatim from html.ts. Used in the Metrics tab header. */ import type React from "react"; export interface ModelBadgeProps { /** Model name/identifier. */ name: string; /** Human-readable provider name. */ providerName: string; /** Machine-readable provider identifier. */ provider: string; /** USD per input token (from model pricing). */ inputRate: number; /** USD per output token (from model pricing). */ outputRate: number; } function Field({ label, value, title, }: { label: string; value: string; title?: string; }): React.ReactElement { return (