🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
import { Avatar, Flexbox, SortableList } from '@lobehub/ui';
import { memo } from 'react';
import { ProviderIcon } from '@/components/LobeIcons';
import { type AiProviderListItem } from '@/types/aiProvider';
interface GroupItemProps extends AiProviderListItem {
disabled?: boolean;
}
const GroupItem = memo<GroupItemProps>(({ id, name, source, logo, disabled }) => {
return (
<>
<Flexbox horizontal gap={8}>
{source === 'custom' && logo ? (
<Avatar
alt={name || id}
avatar={logo}
shape={'square'}
size={24}
style={{ borderRadius: 6 }}
/>
) : (
<ProviderIcon provider={id} size={24} style={{ borderRadius: 6 }} type={'avatar'} />
)}
{name}
</Flexbox>
{!disabled && <SortableList.DragHandle />}
</>
);
});
export default GroupItem;