import React from 'react'

export default function Input({
  text,
  name,
  value,
  placeholder,
  onchange,
}: {
  text: string
  name: string
  value: string
  placeholder: string
  onchange: () => void
}) {
  return (
    <label>
      {text}
      <input
        className={name}
        type="text"
        placeholder={placeholder}
        onChange={onchange.bind(null, name)}
        value={value}
      />
    </label>
  )
}
