mapcomplete/UI/Popup/TagExplanation.svelte

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
461 B
Svelte
Raw Normal View History

<script lang="ts">
/**
* Shows an explanation about the given TagsFilter.
*/
import { TagsFilter } from "../../Logic/Tags/TagsFilter"
import FromHtml from "../Base/FromHtml.svelte"
export let tagsFilter: TagsFilter
export let properties: Record<string, string> | undefined = {}
export let linkToWiki: boolean = false
</script>
{#if tagsFilter !== undefined}
<FromHtml src={tagsFilter.asHumanString(linkToWiki, false, properties)} />
{/if}