export function useWizard(steps, activeId) {
    const activeIndex = Math.max(0, steps.findIndex((step) => step.id === activeId));
    return { activeIndex, activeStep: steps[activeIndex] ?? null };
}
