 
 {ExerciseStore, ExerciseActions} = require '../../flux/exercise'
 {AsyncButton} = require 'openstax-react-components'
+showDialog = require './unsaved-dialog'
 
 Icon = require '../icon'
 ScrollSpy = require '../scroll-spy'

        <Sectionizer onScreenElements={[]} chapter_sections={@getSections()} />
      </ScrollSpy>
      <div className="save-cancel">
        {@renderSaveCancelButtons() if ExerciseStore.hasUnsavedExclusions()}
      </div>
    </div>


    filter: React.PropTypes.string
    onFilterChange: React.PropTypes.func.isRequired

  getInitialState: -> {
    hasSaved: false
  }

  getSections: ->
    _.keys @props.exercises.all.grouped
