* feat(ui/tracker): start tag n watch * fix(tracker): test coverage, fix some watcher api * fix(tracker): add intersectionobserver, adjust tests * feat(tracker): relay + apollo plugins * feat(ui): tags search * feat(ui): tags name edit * feat(ui): tags search icon * feat(ui): icons for tabs in player * feat(ui): save and find button * feat(tracker): save tags in session storage (just in case) * feat(ui): improve loading * feat(ui): fix icon names gen * feat(ui): fix typo
40 lines
1 KiB
TypeScript
40 lines
1 KiB
TypeScript
import React from 'react';
|
|
import EventsBlock from '../Session_/EventsBlock';
|
|
import PageInsightsPanel from '../Session_/PageInsightsPanel/PageInsightsPanel';
|
|
import TagWatch from "Components/Session/Player/TagWatch";
|
|
|
|
import cn from 'classnames';
|
|
import stl from './rightblock.module.css';
|
|
|
|
function RightBlock({
|
|
activeTab,
|
|
setActiveTab,
|
|
}: {
|
|
activeTab: string;
|
|
setActiveTab: (tab: string) => void;
|
|
}) {
|
|
switch (activeTab) {
|
|
case 'EVENTS':
|
|
return (
|
|
<div className={cn('flex flex-col bg-white border-l', stl.panel)}>
|
|
<EventsBlock setActiveTab={setActiveTab} />
|
|
</div>
|
|
);
|
|
case 'CLICKMAP':
|
|
return (
|
|
<div className={cn('flex flex-col bg-white border-l', stl.panel)}>
|
|
<PageInsightsPanel setActiveTab={setActiveTab} />
|
|
</div>
|
|
);
|
|
case 'INSPECTOR':
|
|
return (
|
|
<div className={cn('bg-white border-l', stl.panel)}>
|
|
<TagWatch />
|
|
</div>
|
|
);
|
|
default:
|
|
return null;
|
|
}
|
|
}
|
|
|
|
export default RightBlock;
|