import {
  ChatRoomContext
} from "./chunk-L2YZ7FBD.mjs";

// tmp-babel/messages/common/context/useChatRoom/index.js
import { useContext } from "react";
import { useStore } from "zustand";
var useChatRoom = function useChatRoom2() {
  var store = useContext(ChatRoomContext);
  if (!store) {
    throw new Error("Missing ChatRoomProvider");
  }
  return useStore(store, function(state) {
    return state;
  });
};
var useChatRoom_default = useChatRoom;

export {
  useChatRoom_default
};
//# sourceMappingURL=chunk-U2XGYM5M.mjs.map