mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-12-28 20:51:17 +00:00
Define DropdownOption interface
This commit is contained in:
@@ -4,9 +4,14 @@
|
|||||||
import { clickOutside } from '$lib/utils/click-outside';
|
import { clickOutside } from '$lib/utils/click-outside';
|
||||||
import { fly } from 'svelte/transition';
|
import { fly } from 'svelte/transition';
|
||||||
|
|
||||||
export let options: string[] = [];
|
interface DropdownOption {
|
||||||
|
value: string;
|
||||||
|
icon?: typeof LinkButton;
|
||||||
|
}
|
||||||
|
|
||||||
|
export let options: DropdownOption[] = [];
|
||||||
export let value = options[0];
|
export let value = options[0];
|
||||||
export let icons: any[] = undefined;
|
export let icons: typeof LinkButton[] | undefined = undefined;
|
||||||
|
|
||||||
let showMenu = false;
|
let showMenu = false;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user