 
   render: ->
 
-    <ActivityModal {...@props} onConfirm={@bound 'createChannel'}>
+    <ActivityModal {...@getModalProps()}>
       <div className='CreateChannel-content'>
         <div className='CreateChannel-description'>
           <strong>This will create a new public channel that anyone on your team can join.</strong>

  setPurpose: (event) ->

    @setState purpose: event.target.value


  prepareRecipients: ->

    'invalid'              : @state.invalidParticipants


  getModalProps: ->
    isOpen             : yes
    title              : 'Create Channel'
    className          : 'CreateChannel-Modal'
    buttonConfirmTitle : 'CREATE'
    onConfirm          : @bound 'createChannel'
    onClose            : @bound 'onClose'


  setName: (event) ->

    value = event.target.value
