import { NavLink, useLocation } from 'react-router-dom' import { useProgramScope } from '../context/ProgramScopeContext.jsx' import { useMethodUiContext } from '../hooks/useMethodUiContext.js' import { resolveActiveProcessStepKey } from '../config/methodUiDefaults.js' export function MethodProcessBar() { const location = useLocation() const { initiativeId, hrefWithScope } = useProgramScope() const { processSteps, archetypeKey, loading } = useMethodUiContext() if (!initiativeId || loading || processSteps.length === 0) { return null } const activeKey = resolveActiveProcessStepKey(location.pathname, processSteps) return ( ) }