<script lang="ts">
  import { getCurrentWindow } from "@tauri-apps/api/window";
  import Settings from "$lib/Settings.svelte";
  import Overlay from "$lib/Overlay.svelte";
  import Layouts from "$lib/Layouts.svelte";

  // All windows load the same SPA entry; pick the view by window label.
  const label = getCurrentWindow().label;
</script>

{#if label === "overlay"}
  <Overlay />
{:else if label === "layout"}
  <Layouts />
{:else}
  <Settings />
{/if}
