feat: add book transcripts categorisation

This commit is contained in:
gosangam
2026-06-17 12:40:40 +05:30
parent f96e7dd2f1
commit f5abe33c09
7 changed files with 930 additions and 10 deletions
+4 -1
View File
@@ -7,6 +7,7 @@ import { ogForTranscriptions } from "@/lib/og";
import {
getTranscriptionYears,
getTranscriptionPlaces,
getTranscriptionBooks,
getTotalTranscriptionCount,
getTranscriptionIndex,
} from "@/lib/transcriptions";
@@ -24,9 +25,10 @@ export default async function TranscriptionsPage({
}) {
const { view = "year" } = await searchParams;
const [years, places, totalCount, index] = await Promise.all([
const [years, places, books, totalCount, index] = await Promise.all([
getTranscriptionYears(),
getTranscriptionPlaces(),
getTranscriptionBooks(),
getTotalTranscriptionCount(),
getTranscriptionIndex(),
]);
@@ -56,6 +58,7 @@ export default async function TranscriptionsPage({
currentView={view}
years={years}
places={places}
books={books}
lectureCount={index.typeDistribution.lecture}
conversationCount={index.typeDistribution.conversation}
/>