import { provide, inject, ref, defineComponent, toRefs } from 'vue';

const TabsContextKey = Symbol("tabsContextKey");
function useProvideTabs(props) {
  provide(TabsContextKey, props);
}
function useInjectTabs() {
  return inject(TabsContextKey, { tabs: ref([]), prefixCls: ref() });
}
const TabsContextProvider = 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(toRefs(props));
    return () => {
      var _a;
      return (_a = slots.default) == null ? void 0 : _a.call(slots);
    };
  }
});

export { TabsContextProvider as default, useInjectTabs, useProvideTabs };
//# sourceMappingURL=TabContext.mjs.map
