* feat(ui): start ai summary UI * feat(ui): add api * feat(ui): rm console log * feat(ui): style fix * feat(ui): some ui changes * feat(ui): some ui changes * feat(ui): some text formatting * fix(ui): method fix * fix(ui): fix icon gen * fix(ui): fix global ts declaration for window env
42 lines
1.1 KiB
TypeScript
42 lines
1.1 KiB
TypeScript
import SummaryBlock from 'Components/Session/Player/ReplayPlayer/SummaryBlock';
|
|
import React from 'react';
|
|
import Session from 'Types/session/session';
|
|
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;
|