Use arguments

This commit is contained in:
Robin van der Linde 2024-04-25 10:52:10 +02:00
parent b8b194d04b
commit a944a26e9c
Signed by untrusted user: Robin-van-der-Linde
GPG key ID: 53956B3252478F0D
5 changed files with 27 additions and 6 deletions

View file

@ -27,6 +27,9 @@
export let feature: Feature
export let args: (string | number | boolean)[] = undefined
export let state: SpecialVisualizationState
export let tags: UIEventSource<Record<string, string>>
export let helperArgs: (string | number | boolean)[]
export let key: string
let properties = { feature, args: args ?? [] }
</script>
@ -52,5 +55,5 @@
{:else if type === "wikidata"}
<ToSvelte construct={() => InputHelpers.constructWikidataHelper(value, properties)} />
{:else if type === "nsi"}
<NameSuggestionIndexInput {value} {feature} />
<NameSuggestionIndexInput {value} {feature} {tags} {helperArgs} {key} />
{/if}