Files
salam e687b4437b
linter / quality (push) Canceled after 0s
tests / ci (8.3) (push) Canceled after 0s
tests / ci (8.4) (push) Canceled after 0s
tests / ci (8.5) (push) Canceled after 0s
first commit
2026-10-06 18:53:03 +02:00

32 lines
743 B
Svelte

<script lang="ts">
import type { Snippet } from 'svelte';
import { SidebarInset } from '@/components/ui/sidebar';
import { cn } from '@/lib/utils';
import type { AppVariant } from '@/types';
let {
variant = 'sidebar',
class: className = '',
children,
}: {
variant?: AppVariant;
class?: string;
children?: Snippet;
} = $props();
</script>
{#if variant === 'sidebar'}
<SidebarInset class={className}>
{@render children?.()}
</SidebarInset>
{:else}
<main
class={cn(
'mx-auto flex h-full w-full max-w-7xl flex-1 flex-col gap-4 rounded-xl',
className,
)}
>
{@render children?.()}
</main>
{/if}