diff --git a/frontend/src/components/inventory/NodeContextPanel.tsx b/frontend/src/components/inventory/NodeContextPanel.tsx index 182b7a6..cf69090 100644 --- a/frontend/src/components/inventory/NodeContextPanel.tsx +++ b/frontend/src/components/inventory/NodeContextPanel.tsx @@ -1,31 +1,14 @@ import type { NodeContext } from '../../types/inventory'; +import { RelationNavigator } from './RelationNavigator'; import './inventory.css'; type Props = { context: NodeContext | null; loading?: boolean; + onNavigateNode: (id: string) => void; }; -function RelationList({ title, items }: { title: string; items: NodeContext['relations']['incoming'] }) { - return ( -
Nessuna relazione
- ) : ( -Parent: {parent ? parent.name : 'Nessuno'}
+Parent: {parent ? : 'Nessuno'}
Children: {children.length}
{children.length > 0 && (Nessuna relazione navigabile.
; + } + + return ( +