TypeIcon.tsx 451 Bytes
Newer Older
Diego Mello's avatar
Diego Mello committed
1
2
3
4
5
import React from 'react';

import RoomTypeIcon from '../RoomTypeIcon';
import { ITypeIconProps } from './interfaces';

Diego Mello's avatar
Diego Mello committed
6
const TypeIcon = React.memo(({ type, prid, status, isGroupChat, teamMain, size, style, sourceType }: ITypeIconProps) => (
Diego Mello's avatar
Diego Mello committed
7
8
9
10
11
12
13
	<RoomTypeIcon
		type={prid ? 'discussion' : type}
		isGroupChat={isGroupChat}
		status={status}
		teamMain={teamMain}
		size={size}
		style={style}
Diego Mello's avatar
Diego Mello committed
14
		sourceType={sourceType}
Diego Mello's avatar
Diego Mello committed
15
16
17
18
	/>
));

export default TypeIcon;