overleaf-cep/services/web/frontend/js/features/share-project-modal/components/view-member.tsx
David 966cea3d8b Merge pull request #25550 from overleaf/dp-share-modal-proptypes
Remove proptypes from ShareProjectModal

GitOrigin-RevId: b95fed5007f72e4a57a65b1d08d8fcc9579b3630
2025-05-16 08:06:05 +00:00

25 lines
781 B
TypeScript

import MemberPrivileges from './member-privileges'
import OLRow from '@/features/ui/components/ol/ol-row'
import OLCol from '@/features/ui/components/ol/ol-col'
import MaterialIcon from '@/shared/components/material-icon'
import { ProjectContextMember } from '@/shared/context/types/project-context'
export default function ViewMember({
member,
}: {
member: ProjectContextMember
}) {
return (
<OLRow className="project-member">
<OLCol xs={8}>
<div className="project-member-email-icon">
<MaterialIcon type="person" />
<div className="email-warning">{member.email}</div>
</div>
</OLCol>
<OLCol xs={4} className="text-end">
<MemberPrivileges privileges={member.privileges} />
</OLCol>
</OLRow>
)
}