feat: add book transcripts categorisation
This commit is contained in:
@@ -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}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user