Files
chatwoot/app/javascript/dashboard/components-next/message/useGallery.js
T

21 lines
365 B
JavaScript

import { computed } from 'vue';
import { useToggle } from '@vueuse/core';
export function useGallery() {
const [showGallery] = useToggle(false);
const isGalleryAllowed = computed(() => {
return true;
});
const toggleGallery = value => {
showGallery.value = value;
};
return {
showGallery,
isGalleryAllowed,
toggleGallery,
};
}