React = require 'react' AutoloadImagesStore = require './autoload-images-store' Actions = require './autoload-images-actions' {Message} = require 'nylas-exports' class AutoloadImagesHeader extends React.Component @displayName: 'AutoloadImagesHeader' @propTypes: message: React.PropTypes.instanceOf(Message).isRequired constructor: (@props) -> render: => if AutoloadImagesStore.shouldBlockImagesIn(@props.message)
Actions.temporarilyEnableImages(@props.message) }>Show Images | Actions.permanentlyEnableImages(@props.message) }>Always show images from {@props.message.fromContact().toString()}
else
module.exports = AutoloadImagesHeader