mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-10-29 17:40:28 +00:00
Define DropdownOption interface
This commit is contained in:
@@ -4,9 +4,14 @@
|
||||
import { clickOutside } from '$lib/utils/click-outside';
|
||||
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 icons: any[] = undefined;
|
||||
export let icons: typeof LinkButton[] | undefined = undefined;
|
||||
|
||||
let showMenu = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user