import { Flex, Icon, Text } from '../../../general';
import { pluralize } from '../../../util';
import { AvatarRow, ContactData } from '../../general/Avatar/AvatarRow';
type Props = {
live: any;
rooms: any[];
participants: ContactData[];
};
export const RoomsDockDescription = ({ live, rooms, participants }: Props) => {
if (!live) {
return (
{rooms.length > 0 ? (
{rooms.length} {pluralize('room', rooms.length)}
) : (
No rooms
)}
);
}
return (
{live.title}
{`${live.present.length}/${live.capacity}`}
);
};