AppLayout.vue 663 B

1234567891011121314151617181920212223242526272829303132333435
  1. <script setup lang="ts">
  2. import AppSidebar from '@/Components/AppSidebar.vue'
  3. import {SidebarProvider, SidebarTrigger} from '@/Packages/Shadcn/Components/ui/sidebar'
  4. import {Head} from "@inertiajs/vue3";
  5. defineOptions({ inheritAttrs: false })
  6. defineProps({
  7. pageClass: {
  8. default: () => null,
  9. },
  10. chats: {
  11. type: Array,
  12. default: () => [],
  13. }
  14. })
  15. </script>
  16. <template>
  17. <Head/>
  18. <SidebarProvider>
  19. <AppSidebar :chats="chats" />
  20. <main class="container mx-auto px-2 md:px-0 md:pr-2 py-2" :class="pageClass">
  21. <slot/>
  22. </main>
  23. </SidebarProvider>
  24. </template>
  25. <style scoped>
  26. </style>