{fallbacks.map((source) => (
))}
);
}
/** A persisted invocation identity; deliberately independent of live settings. */
function ResponseSourceBadge({
source,
className,
}: {
source: ResponseSource;
className?: string;
}) {
const { t } = useTranslation();
const [open, setOpen] = useState(false);
const description = t("message.fallbackResponse", { preset: source.preset });
const brand = providerBrand(source.provider);
const { logoUrl, logoLoaded, onLogoLoad, onLogoError } = useLogoFallback(brand?.logoUrls);
const tile = brand?.logoLayout === "tile" && logoUrl === brand.logoUrl;
return (