From 4838df315931bb883f704ec3e1abe2685f296cdf Mon Sep 17 00:00:00 2001 From: HsiangNianian Date: Sat, 22 Apr 2023 19:52:26 +0800 Subject: 😀 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/components/Authors.tsx | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 docs/components/Authors.tsx (limited to 'docs/components/Authors.tsx') diff --git a/docs/components/Authors.tsx b/docs/components/Authors.tsx new file mode 100644 index 0000000..634bd90 --- /dev/null +++ b/docs/components/Authors.tsx @@ -0,0 +1,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 }) { + const validAuthors = authors.filter((author) => TURBO_TEAM[author]); + return ( +
+
4 && "max-w-3xl" + )} + > + {validAuthors.map((username) => ( + + ))} +
+
+ ); +} -- cgit v1.2.3-70-g09d2