import { Link } from 'react-router-dom' import type { MyRoomItem } from '../types' import { RoomAvatar } from './RoomAvatar' import './RoomRow.css' interface RoomRowProps { room: MyRoomItem colorIndex: number active: boolean } export function RoomRow({ room, colorIndex, active }: RoomRowProps) { return (
{room.name} {room.is_private && ( )}
{room.description &&
{room.description}
}
{!active && room.has_mention && ( )} {!active && !room.has_mention && room.has_unread && ( )} ) }