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/sidebar/RoomList/SidebarIcon.js

16 lines
382 B

import { Sidebar } from '@rocket.chat/fuselage';
import React from 'react';
import { useRoomIcon } from '../../hooks/useRoomIcon';
const SidebarIcon = ({ room, highlighted }) => {
const icon = useRoomIcon(room);
return (
<Sidebar.Item.Icon highlighted={highlighted} {...(icon.name && icon)}>
{!icon.name && icon}
</Sidebar.Item.Icon>
);
};
export default SidebarIcon;