{#if $room?.picture} {@const src = $room.picture} {#if src.match("\.(png|svg)$") || src.match("image/(png|svg)")} {:else} {/if} {:else if $room?.closed || $room?.private} {:else} {/if}