{/* Expand/collapse arrow */}
{hasChildren ? (
isExpanded ? (
) : (
)
) : (
)}
{/* Package info */}
{node.name}
{node.version && (
v{node.version}
)}
{/* Tags */}
{node.tags.map((tag, index) => {
if (tag.kind === "cycle") {
return (
cycle
);
}
if (tag.kind === "extra") {
return (
{tag.value}
);
}
if (tag.kind === "group") {
return (
{tag.value}
);
}
return null;
})}
{/* Actions for top-level packages */}
{isTopLevel && (
)}