import { styled } from '@mui/material'; import { Badge } from 'component/common/Badge/Badge'; import { AvatarGroupFromOwners } from 'component/common/AvatarGroupFromOwners/AvatarGroupFromOwners'; import type { ProjectSchemaOwners } from 'openapi'; type Props = { roles: string[]; owners: ProjectSchemaOwners; }; const Wrapper = styled('div')(({ theme }) => ({ width: '100%', display: 'flex', flexDirection: 'row', gap: theme.spacing(1), justifyContent: 'space-between', })); const InfoSection = styled('div')(({ theme }) => ({ display: 'flex', gap: theme.spacing(1), })); export const RoleAndOwnerInfo = ({ roles, owners }: Props) => { return ( Your roles in this project: {roles.map((role) => ( {role} ))} Project owner{owners.length > 1 ? 's' : ''} ); };