{React, Actions} = require 'nylas-exports' Identity = require './identity' PGPKeyStore = require './pgp-key-store' _ = require 'underscore' fs = require 'fs' pgp = require 'kbpgp' module.exports = class PassphrasePopover extends React.Component constructor: -> @state = { passphrase: "" placeholder: "PGP private key password" error: false mounted: true } componentDidMount: -> @_mounted = true componentWillUnmount: -> @_mounted = false @propTypes: identity: React.PropTypes.instanceOf(Identity) addresses: React.PropTypes.array render: -> classNames = if @state.error then "key-passphrase-input form-control bad-passphrase" else "key-passphrase-input form-control"