useCustomLayout.ts 359 B

12345678910111213141516
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import { readonly, ref } from 'vue'
  3. const isCustomLayout = ref(false)
  4. export const useCustomLayout = () => {
  5. const setCustomLayout = (value: boolean) => {
  6. isCustomLayout.value = value
  7. }
  8. return {
  9. isCustomLayout: readonly(isCustomLayout),
  10. setCustomLayout,
  11. }
  12. }