import React from 'react'; import Link from 'next/link'; import { Play, FileText, Clock, Mic } from 'lucide-react'; import { prisma } from '../../lib/prisma'; import { InterviewType } from '@prisma/client'; import { MOCK_INTERVIEWS } from '../../lib/mockData'; export const revalidate = 3600; interface Props { searchParams: Promise<{ type?: string }>; } export default async function AfroLifePage({ searchParams }: Props) { const params = await searchParams; const filter = params.type as InterviewType | 'ALL' || 'ALL'; const where: any = {}; if (filter !== 'ALL') { where.type = filter; } let interviews: any[] = []; try { interviews = await prisma.interview.findMany({ where, orderBy: { createdAt: 'desc' } }); } catch (error) { console.error("Database connection failed on Afro Life page, using mock data."); interviews = MOCK_INTERVIEWS.filter(i => filter === 'ALL' || i.type === filter).map(i => ({ ...i, createdAt: new Date(i.date), })); } return (
Plongez dans l'intimité des bâtisseurs. Entretiens exclusifs, parcours de vie et leçons de leadership.
Aucune interview trouvée dans cette catégorie.
{interview.excerpt}