           ]
       }
 
-ReactActivity = React.createBackboneClass
+ReactGenericActivity = React.createBackboneClass
   render: ->
     user = @model()
 

    user = new User @model().get('user')
    followed_user = new User @model().get('followed_user')

    ReactActivity {
        model: user,
        time: @model().get('created_at')
        href: followed_user.link()

    $(window).off "scroll", @checkScrolledPosition

  render: ->
    _div [],
      @model().map (model) =>
        ReactActivity model: model

ReactActivity = React.createBackboneClass
  displayName: 'ReactActivity'

  render: ->
    switch @model().get("action")
      when "created_comment"
        ReactCreatedCommentActivity model: @model()
      when "created_sub_comment"
        ReactCreatedSubCommentActivity model: @model()
      when "followed_user"
        ReactFollowedUserActivity model: @model()


ReactCreatedCommentActivity = React.createBackboneClass
  displayName: 'ReactCreatedCommentActivity'
