anki/ts/components/Detachable.svelte
2021-05-07 14:31:08 +02:00

12 lines
238 B
Svelte

<!--
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
export let detached = false;
</script>
{#if !detached}
<slot />
{/if}