import { Badge } from "@cloudflare/kumo"; import type { Model } from "../models"; const ModelRow = ({ model }: { model: Model }) => { const [_provider, _author, name] = model.name.split("/"); const tags: string[] = model.properties .map( ({ property_id, value }: { property_id: string; value: string; }): string | null => { if (property_id === "beta" && value === "true") return "Beta"; if (property_id === "lora" && value === "true") return "LoRA"; if (property_id === "function_calling" && value === "true") return "MCP"; return null; } ) .filter((val): val is string => val !== null); return (