Files
afrov2/app/cgu/page.tsx
2026-04-18 22:10:19 +02:00

39 lines
1.2 KiB
TypeScript

import React from 'react';
import { getLegalDocument } from '@/lib/legal';
export const metadata = {
title: 'Conditions Générales d\'Utilisation - Afrohub',
description: 'Consultez les conditions générales d\'utilisation de la plateforme Afrohub.',
};
export default async function CGUPage() {
const doc = await getLegalDocument('CGU');
if (!doc) {
return (
<div className="bg-white min-h-screen py-16 px-4 flex items-center justify-center">
<p className="text-gray-500">Document non disponible.</p>
</div>
);
}
return (
<div className="bg-white min-h-screen py-16 px-4 sm:px-6 lg:px-8">
<div className="max-w-3xl mx-auto">
<h1 className="text-3xl font-serif font-bold text-gray-900 mb-8 border-b pb-4">
{doc.title}
</h1>
<div
className="prose prose-orange max-w-none text-gray-600 space-y-6"
dangerouslySetInnerHTML={{ __html: doc.content }}
/>
<div className="mt-12 pt-8 border-t border-gray-100 text-xs text-gray-400">
Dernière mise à jour : {new Date(doc.updatedAt).toLocaleDateString('fr-FR', { day: 'numeric', month: 'long', year: 'numeric' })}
</div>
</div>
</div>
);
}