 ActivityFlux         = require 'activity/flux'
 immutable            = require 'immutable'
 ThreadSidebar        = require 'activity/components/threadsidebar'
-ThreadHeader         = require 'activity/components/threadheader'
+ChannelThreadHeader  = require 'activity/components/channelthreadheader'
+FeedThreadHeader     = require 'activity/components/feedthreadheader'
 ImmutableRenderMixin = require 'react-immutable-render-mixin'
 PublicChatPane       = require 'activity/components/publicchatpane'
+PublicFeedPane       = require 'activity/components/publicfeedpane'
 ChannelDropContainer = require 'activity/components/channeldropcontainer'
 getGroup             = require 'app/util/getGroup'
+isFeedEnabled        = require 'app/util/isFeedEnabled'
 
 module.exports = class ChannelThreadPane extends React.Component
 


    return  unless thread = @state.channelThread

    <ThreadHeader
      className="ChannelThreadPane-header"
      thread={thread}
      onInvitePeople={@bound 'invitePeople'}
      onLeaveChannel={@bound 'leaveChannel'}
      onShowNotificationSettings={@bound 'showNotificationSettingsModal'}>
    </ThreadHeader>


  renderBody: ->

    return null  unless thread = @state.channelThread

    <div className='ChannelThreadPane-body'>
      {@renderPaneByTypeConstant(thread)}
    </div>


