Files
website/src/lib/components/ThemeSelect.svelte
Jesse Winton 6ff50c2e38 revert a bit
2025-04-04 13:26:11 -04:00

25 lines
595 B
Svelte

<script lang="ts">
import { type Theme, currentTheme } from '$routes/+layout.svelte';
import Select, { type SelectOption } from './Select.svelte';
const options = [
{
value: 'dark',
label: 'Dark',
icon: 'web-icon-dark'
},
{
value: 'light',
label: 'Light',
icon: 'web-icon-light'
},
{
value: 'system',
label: 'System',
icon: 'web-icon-system'
}
];
</script>
<Select {options} bind:value={$currentTheme} placement="top" />