🤯 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 } from '@lobehub/ui';
import { cssVar } from '@lobehub/ui';
import { memo } from 'react';
import { CATEGORY_ICON_MAP } from '../../const';
interface CategoryAvatarProps {
category: string;
}
export const CategoryAvatar = memo<CategoryAvatarProps>(({ category }) => {
const IconComponent = CATEGORY_ICON_MAP[category];
return (
<Avatar
alt={category}
avatar={<IconComponent />}
style={{
backgroundColor: 'transparent',
color: cssVar.colorTextSecondary,
height: 16,
width: 16,
}}
/>
);
});