_ = require 'underscore-plus' React = require 'react' {Actions, Message, DraftStore} = require 'inbox-exports' class TemplateStatusBar extends React.Component @displayName: 'TemplateStatusBar' @containerStyles: textAlign:'center' width:530 margin:'auto' @propTypes: draftLocalId: React.PropTypes.string constructor: (@props) -> @state = draft: null componentDidMount: => @_proxy = DraftStore.sessionForLocalId(@props.draftLocalId) @unsubscribe = @_proxy.listen(@_onDraftChange, @) if @_proxy.draft() @_onDraftChange() componentWillUnmount: => @unsubscribe() if @unsubscribe render: => if @_draftUsesTemplate()
]*class="var[^>]*>/i) > 0
module.exports = TemplateStatusBar