import { Link } from 'react-router-dom' export function GateContributionsSection({ contributions, initiativeId, loading, error }) { if (loading) return

Ist-Beiträge werden geladen…

if (error) return

{error}

if (!contributions) return null const { counts } = contributions if (counts.total === 0) { return (

Ist-Beiträge

Noch keine Verknüpfung — ordne Backlog, Projekte, Arbeitspakete oder Aufgaben diesem Gate zu.

) } return (

Ist-Beiträge

Operative Arbeit, die auf diesen Zielzustand einzahlt ({counts.total} Verknüpfung {counts.total === 1 ? '' : 'en'}).

{contributions.actions?.length > 0 && (

Arbeitspakete

    {contributions.actions.map((item) => (
  • {item.title} — {item.status}
  • ))}
)} {contributions.backlog_items?.length > 0 && (

Backlog

    {contributions.backlog_items.map((item) => (
  • {item.title} — {item.status}
  • ))}
)} {contributions.projects?.length > 0 && (

Projekte

    {contributions.projects.map((item) => (
  • {item.title} — {item.status}
  • ))}
)} {contributions.tasks?.length > 0 && (

Aufgaben

    {contributions.tasks.map((item) => (
  • {item.title} ({item.action_title})
  • ))}
)}
) }