 React = require 'react'
 BoundResourceMixin = require '../lib/bound-resource-mixin'
+handleInputChange = require '../lib/handle-input-change'
 ChangeListener = require '../components/change-listener'
 auth = require '../api/auth'
 PromiseRenderer = require '../components/promise-renderer'

      </div>

      <hr />
      <div className="content-container">
        <p><strong>Email preferences</strong></p>
        <p>TODO</p>
      </div>
    </div>


    apiClient.put @props.user._getURL('avatar'), media: content_type: file.type
      .then =>
        console.log 'Posted image response:', arguments

  handleProjectEmailChange: (projectPreference, args...) ->
    handleInputChange.apply projectPreference, args
    projectPreference.save()

module.exports = React.createClass
  displayName: 'UserSettingsPageWrapper'
