Huakun Shen ad83e89e52
feat: implement pixel dance animation component, page and command (#8)
* feat: implement pixel dance animation component, page and command

* feat: make entire dance page draggable

* feat: add dance transition for ui-iframe extension loading
2024-11-03 19:34:07 -05:00

23 lines
517 B
Svelte

<script lang="ts">
import { setAppConfigContext } from "@/context"
import { setAppStateContext } from "@/context/appState"
import type { AppConfig, AppState } from "@kksh/types"
import type { Snippet } from "svelte"
import type { Writable } from "svelte/store"
const {
appConfig,
appState,
children
}: {
appConfig: Writable<AppConfig>
appState: Writable<AppState>
children: Snippet<[]>
} = $props()
setAppConfigContext(appConfig)
setAppStateContext(appState)
</script>
{@render children?.()}