Adrien Béraud | 88a5244 | 2021-04-26 12:11:41 -0400 | [diff] [blame] | 1 | import React from 'react' |
Adrien Béraud | ab519ff | 2022-05-03 15:34:48 -0400 | [diff] [blame] | 2 | import { Avatar } from '@mui/material' |
| 3 | import { PersonRounded } from '@mui/icons-material' |
Adrien Béraud | 150b478 | 2021-04-21 19:40:59 -0400 | [diff] [blame] | 4 | |
| 5 | export default function ConversationAvatar(props) { |
Adrien Béraud | 88a5244 | 2021-04-26 12:11:41 -0400 | [diff] [blame] | 6 | return <Avatar> |
| 7 | {props.displayName ? props.displayName[0].toUpperCase() : <PersonRounded />} |
| 8 | </Avatar> |
Adrien Béraud | 150b478 | 2021-04-21 19:40:59 -0400 | [diff] [blame] | 9 | } |