import React from 'react'; import { FormattedMessage } from 'react-intl'; import { HStack, Icon, Text } from 'soapbox/components/ui'; import { GroupRoles } from 'soapbox/schemas/group-member'; import { Group } from 'soapbox/types/entities'; interface IGroupRelationship { group: Group } const GroupRelationship = ({ group }: IGroupRelationship) => { const isOwner = group.relationship?.role === GroupRoles.OWNER; const isAdmin = group.relationship?.role === GroupRoles.ADMIN; if (!isOwner && !isAdmin) { return null; } return ( {isOwner ? : } ); }; export default GroupRelationship;