import { faCheck as checkIcon } from '@fortawesome/free-solid-svg-icons'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import type { FC } from 'react'; import { Link } from 'react-router-dom'; import { UncontrolledTooltip } from 'reactstrap'; import type { ServerWithId } from './data'; import type { ManageServersRowDropdownProps } from './ManageServersRowDropdown'; export interface ManageServersRowProps { server: ServerWithId; hasAutoConnect: boolean; } export const ManageServersRow = ( ManageServersRowDropdown: FC, ): FC => ({ server, hasAutoConnect }) => ( {hasAutoConnect && ( {server.autoConnect && ( <> Auto-connect to this server )} )} {server.name} {server.url} );