blob: 634bd90a4634cbeb2e3a2aeadca7e5ffabd3e9ea (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import { Avatar } from "./Avatar";
import cn from "classnames";
import TURBO_TEAM from "../content/team";
import type { Author } from "../content/team";
export function Authors({ authors }: { authors: Array<Author> }) {
const validAuthors = authors.filter((author) => TURBO_TEAM[author]);
return (
<div className="w-full border-b border-gray-400 authors border-opacity-20">
<div
className={cn(
"flex flex-wrap justify-center py-8 mx-auto gap-7",
authors.length > 4 && "max-w-3xl"
)}
>
{validAuthors.map((username) => (
<Avatar key={username} {...TURBO_TEAM[username]} />
))}
</div>
</div>
);
}
|