import React, { memo } from 'react'; import classnames from 'classnames'; const TabListItem = ({ target, content, server, selected, connected, onClick }) => { const className = classnames({ 'tab-server': !target, success: !target && connected, error: !target && !connected, selected }); return (

onClick(server, target)}> {content}

); }; export default memo(TabListItem);