 cn = require 'classnames'
 
 {ExerciseStore, ExerciseActions} = require '../../flux/exercise'
-{PinnedHeader} = require 'openstax-react-components'
+{AsyncButton} = require 'openstax-react-components'
+
 Icon = require '../icon'
 ScrollSpy = require '../scroll-spy'
 Sectionizer = require './sectionizer'

    if filter is @props.filter then filter = ''
    @props.onFilterChange( filter )

  resetExclusions: ->
    ExerciseActions.resetUnsavedExclusions()

  renderSaveCancelButtons: ->
    [
        <BS.Button key='save' bsStyle='primary' className="save">Save</BS.Button>
        <BS.Button key='cancel' className="cancel" onClick={@resetExclusions}>Cancel</BS.Button>
    ]


      homework: React.PropTypes.object
      reading: React.PropTypes.object
    ).isRequired
    courseId: React.PropTypes.string.isRequired
    selectedExercises: React.PropTypes.array
    filter: React.PropTypes.string
    onFilterChange: React.PropTypes.func.isRequired
