import { faChevronRight as chevronIcon } from '@fortawesome/free-solid-svg-icons'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { clsx } from 'clsx'; import type { FC } from 'react'; import { Link } from 'react-router'; import type { ServerWithId } from './data'; type ServersListGroupProps = { servers: ServerWithId[]; borderless?: boolean; }; const ServerListItem = ({ id, name }: { id: string; name: string }) => ( {name} ); export const ServersListGroup: FC = ({ servers, borderless }) => ( servers.length > 0 && (
{servers.map(({ id, name }) => )}
) );