"use strict";

import { useSelector } from 'react-redux';
export const useMessageHeapState = () => {
  const queue = useSelector(state => state.roomHeapSlice.messageHeap);
  const idSet = new Set(queue?.map(m => m.id) ?? []);
  return {
    queue,
    idSet
  };
};
//# sourceMappingURL=useMessageHeapState.js.map