Adrien BĂ©raud | 150b478 | 2021-04-21 19:40:59 -0400 | [diff] [blame] | 1 | import React from 'react'; |
2 | import { Avatar } from '@material-ui/core'; | ||||
3 | import { PersonRounded } from '@material-ui/icons' | ||||
4 | |||||
5 | export default function ConversationAvatar(props) { | ||||
6 | return <Avatar>{props.displayName ? props.displayName[0].toUpperCase() : <PersonRounded />}</Avatar> | ||||
7 | } |