mirror of
https://github.com/semantica-agi/semantica.git
synced 2026-09-12 04:01:35 +00:00
* feat(explorer): add Markdown editing write path * fix(explorer): address markdown editor review findings * feat(explorer): add Markdown editor write path --------- Co-authored-by: Sameer Kadam <sskadam6305@gmail.com>
30 lines
883 B
TypeScript
30 lines
883 B
TypeScript
export type ExploreView = 'graph' | 'memories' | 'vocabulary';
|
|
|
|
type ExploreWorkspaceTabsProps = {
|
|
activeView: ExploreView;
|
|
agentMemoryAvailable: boolean;
|
|
onSelect: (view: ExploreView) => void;
|
|
};
|
|
|
|
export function ExploreWorkspaceTabs({
|
|
activeView,
|
|
agentMemoryAvailable,
|
|
onSelect,
|
|
}: ExploreWorkspaceTabsProps) {
|
|
return (
|
|
<>
|
|
<button className="workspace-tab" data-active={activeView === 'graph'} onClick={() => onSelect('graph')}>
|
|
Semantica Explorer
|
|
</button>
|
|
{agentMemoryAvailable ? (
|
|
<button className="workspace-tab" data-active={activeView === 'memories'} onClick={() => onSelect('memories')}>
|
|
Memories
|
|
</button>
|
|
) : null}
|
|
<button className="workspace-tab" data-active={activeView === 'vocabulary'} onClick={() => onSelect('vocabulary')}>
|
|
Vocabulary Browser
|
|
</button>
|
|
</>
|
|
);
|
|
}
|