   return title
 
 
-ItemLink = ({ onClick, title }) ->
+ItemLink = ({ onClick, title, disabled }) ->
+  className = cx 'HomeAppView--button',
+    'primary': not disabled
+    'inactive': disabled
+
+  onClick = kd.noop  if disabled
+
   <a
     href="#"
-    className="HomeAppView--button primary"
+    className={className}
     onClick={onClick}
     children={title} />


  renderButton: ->

    { onAddToSidebar, onRemoveFromSidebar,
      isVisibleOnSidebar, onCloneFromDashboard, template } = @props

    if onCloneFromDashboard and not template.isMine()
      <ItemLink
        onClick={onCloneFromDashboard}
        title='CLONE STACK' />


$ = require 'jquery'
kd = require 'kd'
React = require 'app/react'
cx = require 'classnames'

isAdmin = require 'app/util/isAdmin'
whoami = require 'app/util/whoami'
