useSystemSetup.ts 311 B

12345678910
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import { inject } from 'vue'
  3. import type { SystemSetup } from '../types/setup.ts'
  4. export const SYSTEM_SETUP_SYMBOL = Symbol('SystemSetup')
  5. export const useSystemSetup = () => {
  6. return inject(SYSTEM_SETUP_SYMBOL) as SystemSetup
  7. }