Some checks failed
Deploy Development / deploy (push) Successful in 47s
Test Suite / pytest-backend (push) Failing after 1m46s
Test Suite / k6 /api/health Baseline (push) Has been skipped
Test Suite / playwright-smoke (push) Has been skipped
Test Suite / lint-backend (push) Successful in 2s
Test Suite / compose-smoke (push) Has been skipped
Ersetzt die Vorhaben-Tab-Navigation durch Cockpit/Ausführen/Planen/Kontrolle/Team, Deep Links für APs/Projekte/Gates und Programm-Scope im Header. Co-authored-by: Cursor <cursoragent@cursor.com>
17 lines
420 B
JavaScript
17 lines
420 B
JavaScript
import { MODE_META } from '../utils/routes.js'
|
|
|
|
export function ModeShell({ modeKey, actions }) {
|
|
const meta = MODE_META[modeKey]
|
|
if (!meta) return null
|
|
|
|
return (
|
|
<header className="page-header mode-shell">
|
|
<div>
|
|
<h1>{meta.title}</h1>
|
|
<p className="page-lead">{meta.lead}</p>
|
|
</div>
|
|
{actions ? <div className="page-header__actions">{actions}</div> : null}
|
|
</header>
|
|
)
|
|
}
|