mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
16 lines
389 B
Svelte
16 lines
389 B
Svelte
<!--
|
|
Copyright: Ankitects Pty Ltd and contributors
|
|
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
-->
|
|
<script lang="ts">
|
|
import type { Readable } from "svelte/store";
|
|
import { getContext } from "svelte";
|
|
|
|
type T = boolean;
|
|
|
|
export let key: Symbol | string;
|
|
|
|
const store = getContext<Readable<T>>(key);
|
|
</script>
|
|
|
|
<slot context={$store} />
|