import React from 'react'; import Tooltip from '@mui/material/Tooltip'; import PersonSharpIcon from '@mui/icons-material/PersonSharp'; import EditSharpIcon from '@mui/icons-material/EditSharp'; import VisibilitySharpIcon from '@mui/icons-material/VisibilitySharp'; import { FormattedMessage } from 'react-intl'; import { Role } from '../../../classes/client'; type RoleIconProps = { role: Role; }; const RoleIcon = ({ role }: RoleIconProps): React.ReactElement => { return ( {role == 'owner' && ( } arrow={true} > )} {role == 'editor' && ( } arrow={true} > )} {role == 'viewer' && ( } arrow={true} > )} ); }; export default RoleIcon;