import React, { useState } from 'react' import EventsBlock from '../Session_/EventsBlock'; import PageInsightsPanel from '../Session_/PageInsightsPanel/PageInsightsPanel' import { Controls as PlayerControls } from 'Player'; import { Tabs } from 'UI'; import { connectPlayer } from 'Player'; import NewBadge from 'Shared/NewBadge'; const EVENTS = 'Events'; const HEATMAPS = 'Click Map'; const TABS = [ EVENTS, HEATMAPS ].map(tab => ({ text: tab, key: tab })); const EventsBlockConnected = connectPlayer(state => ({ currentTimeEventIndex: state.eventListNow.length > 0 ? state.eventListNow.length - 1 : 0, playing: state.playing, }))(EventsBlock) export default function RightBlock() { const [activeTab, setActiveTab] = useState(EVENTS) const renderActiveTab = (tab) => { switch(tab) { case EVENTS: return case HEATMAPS: return } } return (
setActiveTab(tab) } border={ true } />
{ }
{ renderActiveTab(activeTab) }
) }