import { getModelIcon } from '@/utils/constants'; import Image from 'next/image'; import React, { memo, useMemo } from 'react'; const ModelIcon: React.FC<{ width?: number; height?: number; model?: string }> = ({ width, height, model }) => { const iconSrc = useMemo(() => { return getModelIcon(model || 'huggingface'); }, [model]); if (!model) return null; return ( llm ); }; export default memo(ModelIcon);