import { UserAvatar } from 'component/common/UserAvatar/UserAvatar'; import { Typography, styled } from '@mui/material'; import type { PersonalDashboardSchemaAdminsItem } from 'openapi'; const StyledList = styled('ul')(({ theme }) => ({ padding: 0, 'li + li': { marginTop: theme.spacing(2), }, })); const StyledListItem = styled('li')(({ theme }) => ({ display: 'flex', flexFlow: 'row', gap: theme.spacing(2), })); const Wrapper = styled('article')(({ theme }) => ({ display: 'flex', flexFlow: 'column', gap: theme.spacing(2), })); export const YourAdmins: React.FC<{ admins: PersonalDashboardSchemaAdminsItem[]; }> = ({ admins }) => { return ( {admins.length ? ( <>

Your Unleash administrator {admins.length > 1 ? 's are' : ' is'}:

{admins.map((admin) => { return ( {admin.name || admin.username || admin.email} ); })} ) : (

You have no Unleash administrators to contact.

)}
); };