import React from 'react'; import ModelIcon from '@lobehub/icons/es/features/ModelIcon'; import ProviderIcon from '@lobehub/icons/es/features/ProviderIcon'; export default function LobeModelLogo({ model, provider, fallbackSrc = null, alt = '', size = 28, shape = 'square', type = 'color', style = {}, className = '', }) { const hasModel = typeof model === 'string' && model.trim().length > 0; const hasProvider = typeof provider === 'string' && provider.trim().length > 0; try { if (hasModel) { return ( ); } if (hasProvider) { return ( ); } } catch { // Fall through to local fallback asset. } if (fallbackSrc) { return ( {alt} ); } return (
); }