'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var vue = require('vue');

const TabsContextKey = Symbol("tabsContextKey");
function useProvideTabs(props) {
  vue.provide(TabsContextKey, props);
}
function useInjectTabs() {
  return vue.inject(TabsContextKey, { tabs: vue.ref([]), prefixCls: vue.ref() });
}
const TabsContextProvider = vue.defineComponent({
  compatConfig: { MODE: 3 },
  name: "TabsContextProvider",
  inheritAttrs: false,
  props: {
    tabs: { type: Object, default: void 0 },
    prefixCls: { type: String, default: void 0 }
  },
  setup(props, { slots }) {
    useProvideTabs(vue.toRefs(props));
    return () => {
      var _a;
      return (_a = slots.default) == null ? void 0 : _a.call(slots);
    };
  }
});

exports.default = TabsContextProvider;
exports.useInjectTabs = useInjectTabs;
exports.useProvideTabs = useProvideTabs;
//# sourceMappingURL=TabContext.cjs.map
