* ui: start highlight ui * ui: tag items * ui: connecting highlights to notes api... * Highlight feature refinements (#2948) * ui: move clips player to foss, connect notes api to hl * ui: tune note/hl editing, prevent zoom slider body from jumping around * ui: safe check for tag * ui: fix thumbnail gen * ui: fix thumbnail gen * ui: make player modal wider, add shadow * ui: custom warn barge for clips * ui: swap icon for note event wrapper * ui: rm other, fix cancel * ui: moving around creation modal * ui: bg tint * ui: rm disabled for text btn * ui: fix ownership sorting * ui: close player on bg click * ui: fix query, fix min distance for default range * ui: move hl list header out of list comp * ui: spot list header segmented size * Various improvements in highlights (#2955) * ui: update hl in hlPanel comp * ui: rm debug * ui: fix icons file --------- Co-authored-by: Sudheer Salavadi <connect.uxmaster@gmail.com>
47 lines
1.2 KiB
TypeScript
47 lines
1.2 KiB
TypeScript
import React from 'react';
|
|
import EventsBlock from '../Session_/EventsBlock';
|
|
import HighlightPanel from "../Session_/Highlight/HighlightPanel";
|
|
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 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>
|
|
);
|
|
case 'HIGHLIGHT':
|
|
return (
|
|
<div className={cn('bg-white border-l', stl.panel)}>
|
|
<HighlightPanel onClose={() => setActiveTab('')} />
|
|
</div>
|
|
)
|
|
default:
|
|
return null;
|
|
}
|
|
}
|
|
|
|
export default RightBlock;
|