Files
KanbanGit/resources/js/components/AppShell.vue
T
Twyco 59817ad30f
linter / quality (pull_request) Successful in 2m0s
tests / ci (8.4) (pull_request) Successful in 1m57s
Redesign app layout chrome
2026-06-25 01:56:54 +02:00

28 lines
611 B
Vue

<script setup lang="ts">
import { usePage } from '@inertiajs/vue3';
import { SidebarProvider } from '@/components/ui/sidebar';
import type { AppVariant } from '@/types';
type Props = {
variant?: AppVariant;
};
withDefaults(defineProps<Props>(), {
variant: 'sidebar',
});
const isOpen = usePage().props.sidebarOpen;
</script>
<template>
<div
v-if="variant === 'header'"
class="bg-background text-foreground flex min-h-screen w-full flex-col"
>
<slot />
</div>
<SidebarProvider v-else :default-open="isOpen">
<slot />
</SidebarProvider>
</template>