mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -04:00
15 lines
539 B
Svelte
15 lines
539 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">
|
|
import WithContext from "components/WithContext.svelte";
|
|
import { disabledKey } from "components/contextKeys";
|
|
import { inCodableKey } from "./contextKeys";
|
|
</script>
|
|
|
|
<WithContext key={disabledKey} let:context={disabled}>
|
|
<WithContext key={inCodableKey} let:context={inCodable}>
|
|
<slot disabled={disabled || inCodable} />
|
|
</WithContext>
|
|
</WithContext>
|