// @flow import React from 'react'; import * as ICONS from 'constants/icons'; import Button from 'component/button'; import classnames from 'classnames'; type Props = { onClick: (CommentServerDetails) => void, onRemove?: (CommentServerDetails) => void, active: boolean, serverDetails: CommentServerDetails, }; const InputTogglePanel = (props: Props) => { const { onClick, active, serverDetails, onRemove } = props; return (
onClick(serverDetails)} className={classnames('input-toggle-panel', { 'input-toggle-panel--active': active })} >
{`${serverDetails.name}`}
{`${serverDetails.url}`}
{onRemove && (