"use client";
import * as React from "react";
import { jsx } from "react/jsx-runtime";
const GroupCollectionContext = /* @__PURE__ */ React.createContext(null);
if (process.env.NODE_ENV !== "production") GroupCollectionContext.displayName = "GroupCollectionContext";
function useGroupCollectionContext() {
  return React.useContext(GroupCollectionContext);
}
function GroupCollectionProvider(props) {
  const {
    children,
    items
  } = props;
  const contextValue = React.useMemo(() => ({
    items
  }), [items]);
  return /* @__PURE__ */ jsx(GroupCollectionContext.Provider, {
    value: contextValue,
    children
  });
}
export {
  GroupCollectionProvider,
  useGroupCollectionContext
};
//# sourceMappingURL=GroupCollectionContext.js.map
