2021-06-18 00:27:07 +02:00
|
|
|
<!--
|
|
|
|
Copyright: Ankitects Pty Ltd and contributors
|
|
|
|
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
-->
|
2021-10-26 00:43:02 +02:00
|
|
|
<script lang="ts">
|
2021-06-18 00:27:07 +02:00
|
|
|
import { getContext } from "svelte";
|
2022-02-04 09:36:34 +01:00
|
|
|
import type { Readable } from "svelte/store";
|
2021-06-18 00:27:07 +02:00
|
|
|
|
2021-06-18 01:17:43 +02:00
|
|
|
type T = boolean;
|
2021-06-18 00:27:07 +02:00
|
|
|
|
|
|
|
export let key: Symbol | string;
|
|
|
|
|
|
|
|
const store = getContext<Readable<T>>(key);
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<slot context={$store} />
|