Newer
Older
navi-1 / webclient / src / composables / useLightbox.js
@Eugene Sukhodolskiy Eugene Sukhodolskiy on 17 Apr 204 bytes Webclient UI improvements + backend fixes
import { ref } from 'vue'

const _src = ref(null)

export function useLightbox() {
  function open(src) { _src.value = src }
  function close() { _src.value = null }
  return { src: _src, open, close }
}