{#if isOpen}
e.key === 'Escape' && onClose()} role="presentation">
e.stopPropagation()} onkeydown={(e) => e.stopPropagation()} role="dialog" tabindex="-1">

Cast to Device

{#if loading && devices().length === 0}

Searching for devices...

{:else if error}

{error}

{:else if devices().length === 0}

No {activeProtocol === 'chromecast' ? 'Chromecast' : activeProtocol === 'dlna' ? 'DLNA' : 'AirPlay'} devices found

Make sure devices are on the same network

{:else}
{#each devices() as device} {/each}
{/if}
{/if}