{#if loadingRooms}
{#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}
room {selectedRoom?.id}
{selectedRoom?.users_count} / {MAX_CAPACITY}
{:else}
Loading...
... / ...
{/if}
{/if}