import React from 'react' export default function HelpTopicCard({ item, links }) { const primaryHref = item.primaryLinkKey ? links[item.primaryLinkKey] : null const secondaryHref = item.secondaryLinkKey ? links[item.secondaryLinkKey] : null return (

{item.eyebrow}

{item.title}

{item.status}

{item.description}

{item.plannedPath ? (

Planned route: {item.plannedPath}

) : null} {Array.isArray(item.tags) && item.tags.length > 0 ? (
{item.tags.map((tag) => ( {tag} ))}
) : null}
{primaryHref ? ( {item.primaryLabel} ) : null} {secondaryHref ? ( {item.secondaryLabel} ) : null}
{Array.isArray(item.linkItems) && item.linkItems.length > 0 ? (
{item.linkItems.map((linkItem) => ( {linkItem.label} ))}
) : null}
) }