You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
468 B
17 lines
468 B
import dynamic from 'next/dynamic'; |
|
import React, { FC } from 'react'; |
|
import { ChatUserBadge } from './ChatUserBadge'; |
|
|
|
// Lazy loaded components |
|
|
|
const StarFilled = dynamic(() => import('@ant-design/icons/StarFilled'), { |
|
ssr: false, |
|
}); |
|
|
|
export type ModerationBadgeProps = { |
|
userColor: number; |
|
}; |
|
|
|
export const ModerationBadge: FC<ModerationBadgeProps> = ({ userColor }) => ( |
|
<ChatUserBadge badge={<StarFilled />} userColor={userColor} title="Moderator" /> |
|
);
|
|
|