import { connectPlayer, Controls } from 'App/player';
import { toggleBottomBlock, NETWORK, EXCEPTIONS } from 'Duck/components/player';
import React from 'react';
import BottomBlock from '../BottomBlock';
import EventRow from './components/EventRow';
import { TYPES } from 'Types/session/event';
import { Icon } from 'UI';
import { Tooltip } from 'react-tippy';
import stl from './overviewPanel.module.css';
import { connect } from 'react-redux';
interface Props {
resourceList: any[];
exceptionsList: any[];
eventsList: any[];
endTime: number;
toggleBottomBlock: any;
}
function OverviewPanel(props: Props) {
const { resourceList, exceptionsList, eventsList, endTime } = props;
const clickRageList = React.useMemo(() => {
return eventsList.filter((item: any) => item.type === TYPES.CLICKRAGE);
}, [eventsList]);
const scale = 100 / endTime;
const createEventClickHandler = (pointer: any, type: any) => (e: any) => {
e.stopPropagation();
Controls.jump(pointer.time);
if (!type) {
return;
}
props.toggleBottomBlock(type);
};
const renderNetworkElement = (item: any) => {
return (
{item.name}
}
delay={0}
position="top"
>
{item.message}
}
delay={0}
position="top"
>