/** Iconify icon ids for external tech brands in admin selects. */
export function techBrandIcon(brand: string): string | undefined {
  switch (brand) {
    case "google":
    case "google_workspace":
    case "google_dwd":
      return "logos:google-icon"
    case "google_drive":
    case "googledrive":
      return "logos:google-drive"
    case "microsoft":
    case "microsoft_365":
    case "microsoft_app":
    case "onedrive":
      return "logos:microsoft-icon"
    case "dropbox":
      return "logos:dropbox"
    case "github":
      return "logos:github-icon"
    case "linkedin":
      return "logos:linkedin-icon"
    case "azure":
    case "azure_ad":
      return "logos:microsoft-azure"
    case "okta":
      return "logos:okta-icon"
    case "brave":
      return "simple-icons:brave"
    case "bing":
      return "simple-icons:microsoftbing"
    case "duckduckgo":
      return "simple-icons:duckduckgo"
    case "searxng":
      return "simple-icons:searxng"
    case "postgres":
    case "postgresql":
      return "simple-icons:postgresql"
    case "meilisearch":
      return "simple-icons:meilisearch"
    case "typesense":
      return "simple-icons:typesense"
    case "nextcloud":
      return "simple-icons:nextcloud"
    case "onlyoffice":
      return "simple-icons:onlyoffice"
    case "openai":
    case "openai_compatible":
      return "simple-icons:openai"
    case "anthropic":
      return "simple-icons:anthropic"
    case "mistral":
      return "simple-icons:mistralai"
    case "azure_openai":
      return "logos:microsoft-azure"
    case "azure_ai_anthropic":
      return "logos:microsoft-azure"
    case "aws_bedrock":
      return "simple-icons:amazonaws"
    case "google_gemini":
    case "gemini":
      return "simple-icons:googlegemini"
    case "groq":
      return "simple-icons:groq"
    case "deepseek":
      return "simple-icons:deepseek"
    case "openrouter":
      return "simple-icons:openrouter"
    case "together":
      return "simple-icons:togetherdotai"
    case "fireworks":
      return "simple-icons:fireworks"
    case "xai":
      return "simple-icons:x"
    case "ollama":
    case "ollama_cloud":
      return "simple-icons:ollama"
    case "deepgram":
      return "simple-icons:deepgram"
    case "ldap":
    case "active_directory":
      return "mdi:microsoft-active-directory"
    case "saml":
      return "mdi:shield-key"
    case "oauth":
      return "mdi:key-chain"
    case "custom":
      return "mdi:puzzle-outline"
    case "docx":
      return "logos:microsoft-word"
    default:
      return undefined
  }
}
