{selectedNode.name}
{tabs.map(tab => (
))}
{activeTab === 'details' && }
{activeTab === 'config' && }
{activeTab === 'files' && }
{activeTab === 'usage' && }
{activeTab === 'importance' && }
);
}
function DetailsTab({ node, nodeColor, statusColor }: { node: any; nodeColor: string; statusColor: string }) {
return (
{[1, 2, 3, 4, 5].map(star => (
))}
{importanceLabel}
Importance Level {importance}/5
Why this level?
{reasons[importance as keyof typeof reasons]?.map((reason, idx) => (
-
{reason}
))}
);
}