import React, { 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' function WizardInternal() { const { onSubmit, state, storeData } = useContext(WizardContext) const { postData, postDataSuccess, postDataError } = state if (postDataSuccess) { return ( <>

Danke, die Buchung ist in Bearbeitung!

Wir melden uns per E-Mail sobald die Buchung bestätigt ist.

Sollen die eingegebenen Daten in Deinem Browser für die nächste Buchung gespeichert werden?

) } return (
{ event.preventDefault() onSubmit() }} >
{postDataError}
) } export default function Wizard() { return ( ) }