import React from 'react';
import { ArrowLeft, ArrowRight, Eye, EyeOff, Folder, FileCode } from 'lucide-react';
import { useGraphWorkspace } from './workspaceStore';
export const GraphBreadcrumbNav: React.FC = () => {
const {
selectedNodeId,
historyIndex,
historyStack,
navigateBack,
navigateForward,
focusMode,
setFocusMode,
selectNode,
} = useGraphWorkspace();
const pathParts = selectedNodeId ? selectedNodeId.split('/') : [];
return (
{/* Back / Forward History Controls */}
{/* Interactive Breadcrumb Trail */}
{!selectedNodeId ? (
Select any graph node to inspect path
) : (
pathParts.map((part, i) => {
const isLast = i === pathParts.length - 1;
const fullPartialPath = pathParts.slice(0, i + 1).join('/');
return (
{i > 0 && /}
);
})
)}
{/* Focus Mode Toggle */}
);
};