import { useContext } from 'react' import Button from 'react-bootstrap/Button' import Form from 'react-bootstrap/Form' import WizardStore, { WizardContext, ACTIONS } from '../context/wizardStore' import DateSelect from './dateSelect' import Reason from './reason' import Contact from './contact' //import Driver from './driver' const STEPS = [ { id: 'DATE_SELECT', component: DateSelect }, { id: 'REASON', component: Reason }, { id: 'CONTACT', component: Contact }, ] function WizardInternal() { const { state, dispatch, onSubmit } = useContext(WizardContext) const { currentStep } = state const isFirstStep = currentStep === 0 const isLastStep = currentStep === STEPS.length - 1 const CurrentStepComponent = STEPS[currentStep].component return (
) } export default function Wizard() { return (