mirror of
https://git.coom.tech/fuckjannies/lolipiss.git
synced 2024-06-29 22:12:37 +00:00
13 lines
258 B
Svelte
13 lines
258 B
Svelte
|
<script lang="ts">
|
||
|
import { getContext } from 'svelte'
|
||
|
import { TABS } from './Tabs.svelte'
|
||
|
const panel = {}
|
||
|
const { registerPanel, selectedPanel } = getContext(TABS)
|
||
|
|
||
|
registerPanel(panel)
|
||
|
</script>
|
||
|
|
||
|
{#if $selectedPanel === panel}
|
||
|
<slot />
|
||
|
{/if}
|