content: import React from 'react'
  import Field from './Field'
  
  function submitSignIn(event, onSignIn){
    event.preventDefault()
    const form = event.target
    const email = form.elements['email'].value
    const password = form.elements['password'].value
    onSignIn({ email, password })
  }
  
  export default function SignInForm({
    onSignIn
  }){
    return(
      <form onSubmit={ (event) => submitSignIn(event, onSignIn) } >
        <Field label= 'Email' name= 'email' />
        <Field label= 'Password' name= 'password' type= 'password' />
        <button type='submit'>Sign In</button>
      </form>
    )
  }