mirror of
https://github.com/owncast/owncast.git
synced 2024-12-27 19:48:32 +03:00
18 lines
445 B
TypeScript
18 lines
445 B
TypeScript
|
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" />
|
||
|
);
|