LeftSidebarFooterMenu.vue 817 B

12345678910111213141516171819202122232425262728
  1. <!-- Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/ -->
  2. <script setup lang="ts">
  3. import { computed, provide } from 'vue'
  4. import AvatarMenu from '#desktop/components/layout/LayoutSidebar/LeftSidebar/AvatarMenu/AvatarMenu.vue'
  5. import MenuContainer from '#desktop/components/layout/LayoutSidebar/LeftSidebar/MenuContainer/MenuContainer.vue'
  6. import { COLLAPSED_STATE_KEY } from '#desktop/components/layout/LayoutSidebar/LeftSidebar/useCollapsedState.ts'
  7. const props = defineProps<{
  8. collapsed?: boolean
  9. }>()
  10. provide(
  11. COLLAPSED_STATE_KEY,
  12. computed(() => props.collapsed),
  13. )
  14. </script>
  15. <template>
  16. <section
  17. class="flex flex-row items-center justify-between"
  18. :class="{ 'mx-auto mb-0.5 flex-col': collapsed }"
  19. >
  20. <AvatarMenu />
  21. <MenuContainer />
  22. </section>
  23. </template>