view-member.tsx 763 B

123456789101112131415161718192021
  1. import MemberPrivileges from './member-privileges'
  2. import OLRow from '@/features/ui/components/ol/ol-row'
  3. import OLCol from '@/features/ui/components/ol/ol-col'
  4. import MaterialIcon from '@/shared/components/material-icon'
  5. import { ProjectMember } from '@/shared/context/types/project-metadata'
  6. export default function ViewMember({ member }: { member: ProjectMember }) {
  7. return (
  8. <OLRow className="project-member">
  9. <OLCol xs={8}>
  10. <div className="project-member-email-icon">
  11. <MaterialIcon type="person" />
  12. <div className="email-warning">{member.email}</div>
  13. </div>
  14. </OLCol>
  15. <OLCol xs={4} className="text-end">
  16. <MemberPrivileges privileges={member.privileges} />
  17. </OLCol>
  18. </OLRow>
  19. )
  20. }