{#if loadingRooms}
{#if !collapsed}
room
players
{#each $rooms as room, i}
changeRoom(room)} class="grid-row gap-2 hover:bg-gray-300 {room.room_id === $selectedRoomID ? 'text-black' : ''}" >
{#if room.room_id === $selectedRoomID}
{/if}
room {room.room_id.split('-')[3]}
{room.users_count} / {MAX_CAPACITY}
{/each}
{/if}
(isLoading ? null : (collapsed = !collapsed))} > {#if selectedRoom}
room {selectedRoom?.room_id.split('-')[3]}
{selectedRoom?.users_count} / {MAX_CAPACITY}
{:else}
Loading...
... / ...
{/if}
{:else}
loading rooms
{/if}