import React, { PropTypes } from 'react'
import FormItem from '../FormItem'
import styles from './index.css'

const propTypes = {
  className: PropTypes.string,
  children: PropTypes.node,
}

const defaultProps = {
  className: '',
}

const Form = ({ className, children, ...other }) =>
  <form {...other} className={`${styles.form} ${className}`}>
    {children}
  </form>

Form.propTypes = propTypes
Form.defaultProps = defaultProps
Form.Item = FormItem

export default Form
