import clsx from 'clsx'; import React from 'react'; import { useGroupRoles } from 'soapbox/hooks/useGroupRoles'; import { Avatar } from '../ui'; import type { Group } from 'soapbox/schemas'; interface IGroupAvatar { group: Group size: number withRing?: boolean } const GroupAvatar = (props: IGroupAvatar) => { const { group, size, withRing = false } = props; const { normalizeRole } = useGroupRoles(); const isAdmin = normalizeRole(group.relationship?.role as any) === 'admin'; return ( ); }; export default GroupAvatar;