22 lines
502 B
TypeScript
22 lines
502 B
TypeScript
import { clsx, type ClassValue } from "clsx";
|
|
import { twMerge } from "tailwind-merge";
|
|
|
|
export function cn(...inputs: ClassValue[]) {
|
|
return twMerge(clsx(inputs));
|
|
}
|
|
|
|
export function formatProtocolBadge(protocol?: string): string {
|
|
switch (protocol) {
|
|
case "anthropic":
|
|
return "Anthropic";
|
|
case "openai_chat":
|
|
return "Chat";
|
|
case "openai_responses":
|
|
return "Responses";
|
|
case "gemini_native":
|
|
return "Gemini";
|
|
default:
|
|
return protocol ?? "";
|
|
}
|
|
}
|