import React from 'react' import PropTypes from 'prop-types' import { FormattedMessage } from 'react-intl' import messages from './messages' import styles from './ConnectionDetails.scss' const ConnectionDetails = ({ connectionHost, connectionCert, connectionMacaroon, setConnectionHost, setConnectionCert, setConnectionMacaroon, startLndHostError, startLndCertError, startLndMacaroonError }) => (
input} value={connectionHost} onChange={event => setConnectionHost(event.target.value)} />

{startLndHostError}

input} value={connectionCert} onChange={event => setConnectionCert(event.target.value)} />

{startLndCertError}

input} value={connectionMacaroon} onChange={event => setConnectionMacaroon(event.target.value)} />

{startLndMacaroonError}

) ConnectionDetails.propTypes = { connectionHost: PropTypes.string.isRequired, connectionCert: PropTypes.string.isRequired, connectionMacaroon: PropTypes.string.isRequired, setConnectionHost: PropTypes.func.isRequired, setConnectionCert: PropTypes.func.isRequired, setConnectionMacaroon: PropTypes.func.isRequired, startLndHostError: PropTypes.string, startLndCertError: PropTypes.string, startLndMacaroonError: PropTypes.string } export default ConnectionDetails