+kd                  = require 'kd'
 Link                = require 'app/components/common/link'
+EnvironmentFlux     = require 'app/flux/environment'
 React               = require 'kd-react'
 classnames          = require 'classnames'
 

      <div className='SidebarSection-body'>
        <p>
          Team admin has changed the default stack.
          Please save your changes and go to Stack Catalog, and reinitialize.
        </p>
        <Link href='/Stacks/My-Stacks'>
          Stack Catalog
        </Link>
      </div>
    </section>


  @defaultProps =
    className   : 'SidebarStackWidgets --DifferentStackResources'

  onClick: (event) ->

    kd.utils.stopDOMEvent event
    EnvironmentFlux.actions.reinitStackFromWidget()


  # this is at best a notification, we shouldn't put this on
  # top of the sidebar as a forcing function. if we do, there should be "hide this" option
