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() { try { 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} ) } catch (e) { if (e instanceof Error) { console.error(e) } return

Failed to fetch contributor list

} }