mirror of
				https://github.com/owncast/owncast.git
				synced 2025-10-31 18:18:06 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			468 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			468 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| 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" />
 | |
| );
 | 
