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 }
}
