The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/client/components/basic/avatar/RoomAvatar.js

12 lines
370 B

import React from 'react';
import { Avatar } from '@rocket.chat/fuselage';
import { roomTypes } from '../../../../app/utils/client';
function RoomAvatar({ room: { type, ...room }, ...props }) {
const avatarUrl = roomTypes.getConfig(type).getAvatarPath({ type, ...room });
return <Avatar url={avatarUrl} title={avatarUrl} {...props}/>;
}
export default RoomAvatar;