MenuContainer.vue 768 B

1234567891011121314151617181920
  1. <!-- Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/ -->
  2. <script setup lang="ts">
  3. import AddMenu from '#desktop/components/layout/LayoutSidebar/LeftSidebar/MenuContainer/AddMenu/AddMenu.vue'
  4. import SettingMenu from '#desktop/components/layout/LayoutSidebar/LeftSidebar/MenuContainer/AdminMenu/AdminMenu.vue'
  5. import { useCollapsedState } from '#desktop/components/layout/LayoutSidebar/LeftSidebar/useCollapsedState.ts'
  6. const { collapsedState } = useCollapsedState()
  7. </script>
  8. <template>
  9. <div
  10. role="list"
  11. class="-:bg-gray-700 flex items-center gap-4 rounded-xl p-4 empty:hidden"
  12. :class="{ 'flex-col bg-transparent': collapsedState }"
  13. >
  14. <SettingMenu role="listitem" />
  15. <AddMenu role="listitem" />
  16. </div>
  17. </template>