{#if loadingRooms && selectedRoom}
{#if !collapsed}
room
players
{#each $rooms as room}
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_id}
{room.users_count} / {MAX_CAPACITY}
{/each}
{/if}
(isLoading ? null : (collapsed = !collapsed))} > {#if selectedRoom}
{selectedRoom?.room_id}
{selectedRoom?.users_count} / {MAX_CAPACITY}
{:else}
Loading...
... / ...
{/if}
{:else}
loading rooms
{/if}