Add bot user badge. Closes #2681

This commit is contained in:
Gabe Kangas
2023-02-05 15:37:16 -08:00
parent 84ddf0dcfe
commit 1ee71aecaa
5 changed files with 55 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
import dynamic from 'next/dynamic';
import React, { FC } from 'react';
import { ChatUserBadge } from './ChatUserBadge';
// Lazy loaded components
const BulbFilled = dynamic(() => import('@ant-design/icons/BulbFilled'), {
ssr: false,
});
export type BotBadgeProps = {
userColor: number;
};
export const BotUserBadge: FC<BotBadgeProps> = ({ userColor }) => (
<ChatUserBadge badge={<BulbFilled />} userColor={userColor} title="Bot" />
);