Skip to content

🤯 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.

771 B
Raw Blame
'use client';

import { Center, cssVar } from '@lobehub/ui';
import { SkillsIcon } from '@lobehub/ui/icons';
import { type CSSProperties, memo } from 'react';

interface SkillAvatarProps {
  className?: string;
  size?: number;
  style?: CSSProperties;
}

const SkillAvatar = memo<SkillAvatarProps>(({ size = 40, className, style }) => {
  return (
    <Center
      className={className}
      flex={'none'}
      style={{
        borderRadius: Math.floor(size * 0.1),
        color: cssVar.colorText,
        height: size,
        overflow: 'hidden',
        width: size,
        ...style,
      }}
    >
      <SkillsIcon size={size} style={{ transform: 'scale(0.75)' }} />
    </Center>
  );
});

SkillAvatar.displayName = 'SkillAvatar';

export default SkillAvatar;