import { fetchDataCompetences } from "../utils/fetchDataCompetences"; // ✅ Importation du bon fetch import CarouselCompetences from "./CarouselCompetences"; import ReactMarkdown from "react-markdown"; interface ContentSectionProps { collection: string; slug: string; titleClass?: string; contentClass?: string; } export default async function ContentSectionCompetences({ collection, slug, titleClass, contentClass }: ContentSectionProps) { const data = await fetchDataCompetences(collection, slug); // ✅ Utilisation du fetch spécifique if (!data) { return