<script lang="ts">
  import { S } from '$lib';
  import type { Snippet } from 'svelte';

  let {
    children,
    sidepanel,
    title,
    description = 'No Description Specified',
    class: classes,
  }: {
    children: Snippet;
    sidepanel?: Snippet;
    title: string;
    description?: string;
    class?: string;
  } = $props();
</script>

<svelte:head>
  <title>{title}</title>
  <meta name="description" content={description} />
</svelte:head>

<div class="{S.window} {S.shadow_large} relative max-w-[100%]">
  {#if sidepanel}
    <div class={S.window_sidepanel}>
      {@render sidepanel()}
    </div>
  {/if}
  {@render children()}
</div>
