Start to display messages list
This commit is contained in:
15
matrixgw_frontend/src/widgets/messages/AccountIcon.tsx
Normal file
15
matrixgw_frontend/src/widgets/messages/AccountIcon.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import { Avatar } from "@mui/material";
|
||||
import type { UserProfile } from "../../api/matrix/MatrixApiProfile";
|
||||
import { MatrixApiMedia } from "../../api/matrix/MatrixApiMedia";
|
||||
|
||||
export function AccountIcon(p: { user: UserProfile }): React.ReactElement {
|
||||
return (
|
||||
<Avatar
|
||||
src={
|
||||
p.user.avatar ? MatrixApiMedia.MediaURL(p.user.avatar, true) : undefined
|
||||
}
|
||||
>
|
||||
{p.user.display_name?.slice(0, 1)}
|
||||
</Avatar>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user