import Skeleton, { SkeletonTheme } from "react-loading-skeleton";
import { getContributors } from "../lib/contributors";
import Link from 'next/link';
import { faExternalLinkAlt } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
export default async function Contributors() {
const contributors = await getContributors();
if (!contributors || contributors.length < 1) return (
)
const contributorList = contributors.map((contributor, index) => (
{contributor.attributes.url ? (
{contributor.attributes.name}
) : (
contributor.attributes.name
)}
{index !== contributors.length - 1 ? ", " : ""}
));
return (
<>{contributorList}>
)
}