{tag.name}
+{tag.introduce}
+ +统计
++ 共收录了{" "} + + {total} + {" "} + 首诗,诗人{" "} + + {statistics.length} + {" "} + 位。 其中,最多的诗人是{" "} + {first?.author.name} + ,共有{" "} + + {max} + {" "} + 首诗。 +
+ +diff --git a/src/app/[lang]/tag/[id]/page.tsx b/src/app/[lang]/tag/[id]/page.tsx
index c14992b7..b4fe4f95 100644
--- a/src/app/[lang]/tag/[id]/page.tsx
+++ b/src/app/[lang]/tag/[id]/page.tsx
@@ -12,8 +12,8 @@ import {
import { HeaderMain } from "~/components/ui/header";
import { api } from "~/trpc/server";
import { type Metadata } from "next";
-import { TagBasic } from "./components/basic";
import { cn } from "~/utils";
+import { Button } from "~/components/ui/button";
interface Props {
params: { id: string; lang: Locale };
@@ -101,6 +101,9 @@ export default async function TagDetailPage(props: Props) {
const rank = statistics.map((item) => item[0]!.author.id);
+ const max = statistics[0]?.length || 0;
+ const first = statistics[0]![0];
+
return (
<>
{tag.introduce}
+ ++ 共收录了{" "} + + {total} + {" "} + 首诗,诗人{" "} + + {statistics.length} + {" "} + 位。 其中,最多的诗人是{" "} + {first?.author.name} + ,共有{" "} + + {max} + {" "} + 首诗。 +
+ +