<script lang="ts">
import { onDestroy } from "svelte";
import type { CancelableSwitchController } from "./lib/dvSwitchControl";
import { setSwitchControllerContext } from "./lib/switchControl";
export let controller: CancelableSwitchController;
setSwitchControllerContext(controller);
onDestroy(() => {
controller.done();
});
</script>
<slot />