import './GuestForm.scss'

type TProps = {
  onChange: (e: React.FormEvent<HTMLInputElement>) => void
  onSubmit: (e: React.SyntheticEvent<HTMLFormElement>) => void
  value: string
}

const GuestForm = ({onChange, onSubmit, value}: TProps) => {
  return (
    <form className='GuestForm' onSubmit={onSubmit}>
        <input onChange={onChange} value={value}/>
    </form>
  )
}

export default GuestForm