<script lang="ts">
export let channel: string;
export let channels: string[];
</script>
<select id="channel" class="form-select form-select-sm" name="channel" bind:value={channel}>
{#if channels.length}
{#each channels as c}
<option value={c}>{c}</option>
{/each}
{:else}
<option value="main">main</option>
{/if}
</select>