import { FC } from 'react';
import { ListGroup, ListGroupItem } from 'reactstrap';
import { Link } from 'react-router-dom';
import classNames from 'classnames';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faChevronRight as chevronIcon } from '@fortawesome/free-solid-svg-icons';
import { ServerWithId } from './data';
import './ServersListGroup.scss';
interface ServersListGroupProps {
servers: ServerWithId[];
embedded?: boolean;
}
const ServerListItem = ({ id, name }: { id: string; name: string }) => (
{name}
);
const ServersListGroup: FC = ({ servers, children, embedded = false }) => (
<>
{children && {children}
}
{servers.length > 0 && (
{servers.map(({ id, name }) => )}
)}
>
);
export default ServersListGroup;