This commit is contained in:
Alex
2023-02-27 18:48:04 +00:00
parent 5cd9f8f6e0
commit 3027945fe1
2 changed files with 7 additions and 2 deletions

View File

@@ -1,9 +1,11 @@
export default function Avatar({
avatar,
size,
className,
}: {
avatar: string;
size?: 'SMALL' | 'MEDIUM' | 'LARGE';
className: string;
}) {
return <div className={'mt-4 text-2xl'}>{avatar}</div>;
return <div className={className}>{avatar}</div>;
}

View File

@@ -22,7 +22,10 @@ const ConversationBubble = forwardRef<
: 'flex-row-reverse self-end '
} ${className}`}
>
<Avatar avatar={type === 'QUESTION' ? '🧑‍💻' : '🦖'}></Avatar>
<Avatar
className="mt-4 text-2xl"
avatar={type === 'QUESTION' ? '🧑‍💻' : '🦖'}
></Avatar>
<div
className={`${
type === 'QUESTION'