import React, { PropTypes } from 'react'
import EmailPropTypes from '../PropTypes'
import includeDataProps from '../includeDataProps'

export default function A(props) {
  return (
    <a {...includeDataProps(props)} href={props.href} target="_blank" style={{
      color: props.color,
      textDecoration: props.textDecoration,
      ...props.style,
    }}>{props.children}</a>
  )
}

A.propTypes = {
  href: PropTypes.string.isRequired,
  color: PropTypes.string,
  textDecoration: PropTypes.string,
  style: EmailPropTypes.style,
  children: PropTypes.node,
}

A.defaultProps = {
  textDecoration: 'underline',
}

@@ -209,16 +209,42 @@
 (props)%7D
+ download=%7Bprops.download%7D
  href=%7Bp
@@ -459,16 +459,46 @@
 quired,%0A
+  download: PropTypes.string,%0A
   color:

Add download prop to A