import React from 'react'; import classnames from 'classnames'; const TabListItem = ({ target, content, network, selected, connected, joined, error, onClick }) => { const className = classnames({ 'tab-network': !target, success: !target && connected, error: (!target && !connected) || (!joined && error), disabled: !!target && !error && joined === false, selected }); return (
onClick(network, target)}> {content}
); }; export default TabListItem;