mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 14:37:13 +01:00
27 lines
575 B
TypeScript
27 lines
575 B
TypeScript
import React, { useContext } from 'react'
|
|
import { BookContext } from '../../context/book'
|
|
import Input from '../input'
|
|
|
|
export default function Contact() {
|
|
const { state, onChangeEvent } = useContext(BookContext)
|
|
|
|
const { purpose, destination } = 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}
|
|
/>
|
|
</>
|
|
)
|
|
}
|