import React from "react"
import { CheckboxStyled } from "./styled"

interface Props {
  onChange: (e: any) => void
  checked: boolean
  name: string
}

const CheckboxField = (props: Props) => {
  const { checked, onChange, name } = props

  return (
    <CheckboxStyled
      name={name}
      checked={checked}
      onChange={onChange}
      color="#f9bd05"
    />
  )
}

export default CheckboxField
