"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.useMessageHeapState = void 0;
var _reactRedux = require("react-redux");
const useMessageHeapState = () => {
  const queue = (0, _reactRedux.useSelector)(state => state.roomHeapSlice.messageHeap);
  const idSet = new Set(queue?.map(m => m.id) ?? []);
  return {
    queue,
    idSet
  };
};
exports.useMessageHeapState = useMessageHeapState;
//# sourceMappingURL=useMessageHeapState.js.map