import { Link } from 'react-router-dom' import { scopedPath } from '../utils/routes.js' import { SteeringSnapshotPanel } from '../components/SteeringSnapshotPanel.jsx' import { CriticalPathPanel } from '../components/CriticalPathPanel.jsx' import { JoinWaitlistPanel } from '../components/JoinWaitlistPanel.jsx' import { MaturityStagePanel } from '../components/MaturityStagePanel.jsx' import { RecurringRhythmPanel } from '../components/RecurringRhythmPanel.jsx' import { AgentSlotsPanel } from '../components/AgentSlotsPanel.jsx' import { SteeringProposalsPanel } from '../components/SteeringProposalsPanel.jsx' import { NextActionWidget } from '../widgets/NextActionWidget.jsx' import { WorkTodayPracticePanel } from '../components/WorkTodayPracticePanel.jsx' import { WorkActionsPanel } from './WorkActionsPanel.jsx' /** Roadblocker-Strip — extrahiert aus InitiativeOverviewPage für Composition. */ export function RoadblockersStrip({ initiativeId, actionsBlocked = 0, blockersOpen = 0 }) { if (actionsBlocked <= 0 && blockersOpen <= 0) return null return (

Roadblocker

{actionsBlocked > 0 && {actionsBlocked} blockierte Arbeitspakete} {actionsBlocked > 0 && blockersOpen > 0 && ' · '} {blockersOpen > 0 && {blockersOpen} offene Blocker}

Zur Ausführung
) } export function WidgetHost({ widget }) { if (!widget?.component) return null const Component = widget.component return } /** @type {Record>} */ export const PROVIDER_COMPONENTS = { SteeringSnapshotPanel, CriticalPathPanel, MaturityStagePanel, RecurringRhythmPanel, NextActionWidget, AgentSlotsPanel, SteeringProposalsPanel, RoadblockersStrip, WidgetHost, WorkActionsPanel, WorkTodayPracticePanel, JoinWaitlistPanel, } /** * @param {string} componentKey */ export function getProviderComponent(componentKey) { return PROVIDER_COMPONENTS[componentKey] || null }