import { Link } from 'react-router-dom' import { scopedPath } from '../utils/routes.js' const AREAS = [ { to: '/plan/gates', title: 'Plan', description: 'Roadmap, Gates und Plan-Ist — methodenneutral pflegen.', countKey: 'roadmapItems', }, { to: '/work/today', title: 'Ausführung', description: 'Arbeitspakete, Zuweisungen, Blocker am Objekt.', countKey: 'actionsOpen', }, { to: '/plan/inbox', title: 'Eingang', description: 'Backlog triagieren und in Arbeitspakete überführen.', countKey: 'backlog', }, { to: '/control/journey', title: 'Nachvollziehbarkeit', description: 'Entscheidungen, Reviews, Nachweise über die Zeit.', countKey: null, }, ] export function InitiativeNavCards({ initiativeId, counts = {} }) { return (

Pflege & Planung

{AREAS.map((area) => { const hint = area.countKey === 'backlog' && counts.backlog ? `${counts.backlog} Backlog` : area.countKey === 'actionsOpen' && counts.actionsOpen ? `${counts.actionsOpen} offen` : area.countKey === 'roadmapItems' && counts.roadmapItems ? `${counts.roadmapItems} Plan-Elemente` : null return (

{area.title}

{area.description}

{hint && {hint}} ) })}
) }