import React from 'react'; import { Wizard as WizardDeprecated, WizardStep } from '@breakaway/preact-core/deprecated'; export const WizardGetCurrentStep: React.FunctionComponent = () => { const onCurrentStepChanged = ({ id }: WizardStep) => { // eslint-disable-next-line no-console console.log(id); }; const closeWizard = () => { // eslint-disable-next-line no-console console.log('close wizard'); }; const steps = [ { id: 1, name: 'First step', component:

Step 1 content

}, { id: 2, name: 'Second step', component:

Step 2 content

}, { id: 3, name: 'Third step', component:

Step 3 content

}, { id: 4, name: 'Fourth step', component:

Step 4 content

}, { id: 5, name: 'Review', component:

Review step content

, nextButtonText: 'Finish' } ]; const title = 'Get current step wizard example'; return ( ); };