import { Terminal, Type, Database } from 'lucide-react'; import { EModelEndpoint, FileSources } from 'librechat-data-provider'; import { MinimalIcon } from '~/components/Endpoints'; import { cn } from '~/utils'; const sourceToEndpoint = { [FileSources.openai]: EModelEndpoint.openAI, [FileSources.azure]: EModelEndpoint.azureOpenAI, }; const sourceToClassname = { [FileSources.openai]: 'bg-white/75 dark:bg-black/65', [FileSources.azure]: 'azure-bg-color opacity-85', [FileSources.execute_code]: 'bg-black text-white opacity-85', [FileSources.text]: 'bg-blue-100 dark:bg-blue-900 opacity-85 text-white', [FileSources.vectordb]: 'bg-yellow-100 dark:bg-yellow-900 opacity-85 text-white', }; const defaultClassName = 'absolute right-0 bottom-0 rounded-full p-[0.15rem] text-gray-600 transition-colors'; export default function SourceIcon({ source, isCodeFile, className = defaultClassName, }: { source?: FileSources; isCodeFile?: boolean; className?: string; }) { if (isCodeFile === true) { return (