<script lang="ts">
  import {page} from "$app/stores"
  import {goto} from "$app/navigation"
  import Dialog from "@lib/components/Dialog.svelte"
  import IntentHandler from "@app/components/IntentHandler.svelte"

  const children = {
    component: IntentHandler,
    props: {
      params: $page.url.searchParams,
      back: () => goto("/home"),
    },
  }
</script>

<Dialog {children} onClose={() => goto("/home")} />
