useSelectDialog.ts 314 B

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