/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ /** * Visual proof of where the API key (and chat content) goes when a BYOK model * is in use. Two stacked paths: * row 1 (active) browser ────► api.provider.com * row 2 (blocked) browser ─► our server ─► api.provider.com (struck out) * * The shape of the diagram is the same for every provider — only the API host * label rotates. Renders crisply in light and dark mode via Tailwind utility * classes. */ interface ByokTrustDiagramProps { apiHost: string; } export function ByokTrustDiagram({ apiHost }: ByokTrustDiagramProps) { return ( {/* Row 1 — the path that's actually used */} ✓ How your requests actually flow {/* Browser box */} Your browser {/* Arrow */} HTTPS · direct {/* Provider API box (highlighted) */} {apiHost} {/* Row 2 — what we are NOT doing */} ✗ What we never do {/* Browser box (muted) */} Your browser {/* Arrow 1 (muted, dashed) */} {/* "Our server" box — struck through */} our server {/* Strike-through across the "our server" box */} {/* Arrow 2 (muted, dashed) */} {/* Provider API box (muted) */} {apiHost} ); }