useTabManager.ts 295 B

1234567891011
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import { ref } from 'vue'
  3. import type { Tab } from '#desktop/components/CommonTabManager/types.ts'
  4. export const useTabManager = <T = Tab[] | Tab['key']>() => {
  5. const activeTab = ref<T>()
  6. return { activeTab }
  7. }