Newer
Older
import ConnectedComment from './ConnectedComment';
import ConnectedTrackChange from './ConnectedTrackChange';
export default ({ commentsTracks, view, position, recalculateTops, users }) => {
let id = '';
if (commentTrack?.node?.attrs.id) {
id = commentTrack.node.attrs.id;
} else if (commentTrack?.attrs?.id) {
id = commentTrack.attrs.id;
} else {
id = commentTrack.id;
}
const top = position[index] ? position[index][id] : 0;
if (commentTrack.data?.type === 'comment') {