feat(Settings): add missing settings

This commit is contained in:
sethburkart123
2024-09-19 16:49:04 +10:00
parent 384663912d
commit 91ec33c0f9
2 changed files with 65 additions and 3 deletions
@@ -0,0 +1,22 @@
<script lang="ts">
let { state, onChange, options } = $props<{
state: string,
onChange: (newState: string) => void,
options: Array<{ value: string, label: string }>
}>();
let select: HTMLSelectElement;
</script>
<select
bind:this={select}
value={state}
onchange={() => onChange(select.value)}
class="px-4 py-1 text-[0.75rem] dark:bg-[#38373D] bg-[#DDDDDD] dark:text-white rounded-md w-full"
>
{#each options as option}
<option value={option.value}>
{option.label}
</option>
{/each}
</select>