import * as React from 'react'; import {withInfo} from '@storybook/addon-info'; import {storyLayout} from '../../index.stories'; import {Wizard} from './Wizard'; import {Footer} from './footer/Footer'; import {IStringKeyMap} from '../../type'; import {Navigation} from './navigation/Navigation'; import {Button, Modal} from '..'; import {StepSchema, WizardContextProps, WizardStep} from '../../type/WizardTypes'; // eslint-disable-next-line no-restricted-syntax export default { title: 'Wizard', decorators: [withInfo, storyLayout] }; interface IStepComponentProps { title: string; } class StepComponent extends React.Component & IStepComponentProps> { constructor (props: IStepComponentProps) { super(props); } get wizardProps () { return this.props as WizardContextProps; } override render () { return ( <> {this.props.title}