mirror of
				https://github.com/owncast/owncast.git
				synced 2025-11-04 05:17:27 +08:00 
			
		
		
		
	* refactor: move/rename BanUserButton file * refactor: move/rename Chart file * refactor: update generic component filenames to PascalCase * refactor: update config component filenames to PascalCase * refactor: update AdminLayout component filename to PascalCase * refactor: update/move VideoJS component * chore(eslint): disable bad react/require-default-props rule * refactor: normalize ActionButton component * refactor: normalize ActionButtonRow component * refactor: normalize FollowButton component * refactor: normalize NotifyButton component * refactor: normalize ChatActionMessage component * refactor: normalize ChatContainer component * refactor: normalize ChatJoinMessage component * refactor: normalize ChatModerationActionMenu component * refactor: normalize ChatModerationDetailsModal component * refactor: normalize ChatModeratorNotification component * refactor: normalize ChatSocialMessage component * refactor: normalize ChatSystemMessage component * refactor: normalize ChatTextField component * refactor: normalize ChatUserBadge component * refactor: normalize ChatUserMessage component * refactor: normalize ContentHeader component * refactor: normalize OwncastLogo component * refactor: normalize UserDropdown component * chore(eslint): modify react/function-component-definition rule * refactor: normalize CodecSelector component * refactor: update a bunch of functional components using eslint * refactor: update a bunch of functional components using eslint, pt2 * refactor: update a bunch of functional components using eslint, pt3 * refactor: replace all component->component default imports with named imports * refactor: replace all component-stories->component default imports with named imports * refactor: remove default exports from most components * chore(eslint): add eslint config files for the components and pages dirs * fix: use-before-define error in ChatContainer * Fix ChatContainer import * Only process .tsx files in Next builds Co-authored-by: Gabe Kangas <gabek@real-ity.com>
		
			
				
	
	
		
			30 lines
		
	
	
		
			798 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			798 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
import { CSSProperties, FC } from 'react';
 | 
						|
 | 
						|
export type ModIconProps = {
 | 
						|
  style?: CSSProperties;
 | 
						|
  fill?: string;
 | 
						|
  stroke?: string;
 | 
						|
};
 | 
						|
 | 
						|
export const ModIcon: FC<ModIconProps> = ({
 | 
						|
  style = { width: '1rem', height: '1rem' },
 | 
						|
  fill = 'none',
 | 
						|
  stroke = 'var(--color-owncast-gray-300)',
 | 
						|
}: ModIconProps) => (
 | 
						|
  <svg
 | 
						|
    fill={fill}
 | 
						|
    stroke={stroke}
 | 
						|
    style={style}
 | 
						|
    viewBox="0 0 24 24"
 | 
						|
    xmlns="http://www.w3.org/2000/svg"
 | 
						|
  >
 | 
						|
    <title>This user has moderation rights</title>
 | 
						|
    <path
 | 
						|
      strokeLinecap="round"
 | 
						|
      strokeLinejoin="round"
 | 
						|
      strokeWidth={2}
 | 
						|
      d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"
 | 
						|
    />
 | 
						|
  </svg>
 | 
						|
);
 |