'use strict';

var vue = require('vue');
var index = require('../try-on-mounted/index.cjs');

function useSupported(callback, sync = false) {
  const isSupported = vue.shallowRef();
  const update = () => isSupported.value = Boolean(callback());
  update();
  index.tryOnMounted(update, sync);
  return isSupported;
}

exports.useSupported = useSupported;
//# sourceMappingURL=index.cjs.map
