import React from 'react' import PropTypes from 'prop-types' 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)} />

Hostname and port of the Lnd gRPC interface. Example: localhost:10009

{startLndHostError}

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

Path to the lnd tls cert. Example: /path/to/tls.cert

{startLndCertError}

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

Path to the lnd macaroon file. Example: /path/to/admin.macaroon

{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