import { CircularProgress } from '@/components/CircularProgress' import { StepWithTooltip } from '@/components/wizard/StepWithTooltip' export function WizardResponsiveHeader({ wizard, methods, titleOverrides, }: { wizard: any methods: any titleOverrides?: Record }) { const idx = wizard.utils.getIndex(methods.current.id) const totalSteps = wizard.steps.length const currentIndex = idx + 1 const hasNextStep = idx < totalSteps - 1 const nextStep = wizard.steps[currentIndex] const resolveTitle = (step: any) => titleOverrides?.[step?.id] ?? step?.title return ( <>

{hasNextStep && nextStep ? (

Siguiente: {resolveTitle(nextStep)}

) : (

¡Último paso!

)}
{wizard.steps.map((step: any) => ( ))}
) }