'use strict';

var vue = require('vue');
var responsiveObserve = require('../_util/responsiveObserve.js');

function useBreakpoint() {
  const screens = vue.shallowRef({});
  let token = null;
  const responsiveObserve$1 = responsiveObserve.default();
  vue.onMounted(() => {
    token = responsiveObserve$1.value.subscribe((supportScreens) => {
      screens.value = supportScreens;
    });
  });
  vue.onUnmounted(() => {
    responsiveObserve$1.value.unsubscribe(token);
  });
  return screens;
}

exports.useBreakpoint = useBreakpoint;
//# sourceMappingURL=useBreakpoint.js.map
