anki/ts/editor/AddonButtons.svelte

19 lines
486 B
Svelte
Raw Normal View History

2021-05-06 20:29:55 +02:00
<!--
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
import ButtonGroup from "components/ButtonGroup.svelte";
import ButtonGroupItem from "components/ButtonGroupItem.svelte";
export let buttons: string[];
</script>
<ButtonGroup>
{#each buttons as button}
<ButtonGroupItem>
{@html button}
</ButtonGroupItem>
{/each}
</ButtonGroup>