import React from 'react' import PropTypes from 'prop-types' import styles from './ConnectionDetails.scss' const ConnectionDetails = ({ connectionHost, connectionCert, connectionMacaroon, setConnectionHost, setConnectionCert, setConnectionMacaroon }) => (
input} value={connectionHost} onChange={event => setConnectionHost(event.target.value)} />
input} value={connectionCert} onChange={event => setConnectionCert(event.target.value)} />
input} value={connectionMacaroon} onChange={event => setConnectionMacaroon(event.target.value)} />
) 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 } export default ConnectionDetails