import { cn } from "@/lib/utils" import mistral from "@/public/providers/mistral.png" import groq from "@/public/providers/groq.png" import perplexity from "@/public/providers/perplexity.png" import { ModelProvider } from "@/types" import { IconSparkles } from "@tabler/icons-react" import { useTheme } from "next-themes" import Image from "next/image" import { FC, HTMLAttributes } from "react" import { AnthropicSVG } from "../icons/anthropic-svg" import { GoogleSVG } from "../icons/google-svg" import { OpenAISVG } from "../icons/openai-svg" interface ModelIconProps extends HTMLAttributes { provider: ModelProvider height: number width: number } export const ModelIcon: FC = ({ provider, height, width, ...props }) => { const { theme } = useTheme() switch (provider as ModelProvider) { case "openai": return ( ) case "mistral": return ( Mistral ) case "groq": return ( Groq ) case "anthropic": return ( ) case "google": return ( ) case "perplexity": return ( Mistral ) default: return } }