Files
pfadi-bussle/components/wizard/reason.tsx
2020-09-10 22:40:29 +02:00

28 lines
665 B
TypeScript

import React, { useContext } from 'react'
import { WizardContext } from './context/wizardStore'
import Input from './input'
export default function Contact() {
const { state, onChangeEvent } = useContext(WizardContext)
const { purpose, destination, org } = state.formData
return (
<>
<Input
label="Zweck der Fahrt"
name="purpose"
value={purpose}
onChange={onChangeEvent}
/>
<Input
label="Ziel der Fahrt"
name="destination"
value={destination}
onChange={onChangeEvent}
/>
<Input label="Verein" name="org" value={org} onChange={onChangeEvent} />
</>
)
}