               modal.destroy()
 
 
-
   render: ->
 
     { code, createdAt, username } = @props.apiToken.toJS()


    <div>
      <div className={className}>
        <div className='HomeApp-ApiToken--api-token'>
          {code}
        </div>
        <div className='HomeApp-ApiToken--api-token-detail'>
          {createdAt} by {username}
        </div>
      </div>
      <DeleteButton callback={@bound 'deleteApiToken'}/>
    </div>


DeleteButton = ({ callback }) ->
  <a className='HomeApp-ApiToken--custom-link-view delete-api-token fr' onClick={callback}>DELETE</a>

TeamFlux = require 'app/flux/teams'
showError = require 'app/util/showError'
remote = require('app/remote').getInstance()
copyToClipboard = require 'app/util/copyToClipboard'

module.exports = class ApiToken extends React.Component

  constructor: (props) ->

    super props

  copyApiToken: ->

    copyToClipboard @refs.token

  deleteApiToken: ->

