import { shallowRef } from 'vue';
import { tryOnMounted } from '../try-on-mounted/index.mjs';

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

export { useSupported };
//# sourceMappingURL=index.mjs.map
