 React = require 'react'
 BS = require 'react-bootstrap'
-{addons} = require 'react/addons'
 
 {TocStore} = require '../../flux/toc'
 {ExerciseActions, ExerciseStore} = require '../../flux/exercise'

    onShowDetailsViewClick: React.PropTypes.func.isRequired
    topScrollOffset:        React.PropTypes.number

  mixins: [ScrollTo, addons.PureRenderMixin]

  getDefaultProps: ->
    topScrollOffset: 110

  componentDidMount:   ->
    @scrollToSelector('.exercise-sections')

Icon = require '../icon'

SectionsExercises = React.createClass

  propTypes:
    exercises:              React.PropTypes.array.isRequired
