This commit is contained in:
2025-12-27 11:13:46 +01:00
parent f52992b8fd
commit 47397db72c
6 changed files with 258 additions and 1 deletions

View File

@ -0,0 +1,18 @@
import { prisma } from '@/lib/prisma';
import ReactMarkdown from 'react-markdown';
export default async function TosPage() {
const tos = await prisma.termsOfService.findFirst({
orderBy: [{ version: "desc" }],
})
// console.log(tos?.markdown)
return (
<div className="container py-10 space-y-10">
<div className="markdown">
<ReactMarkdown>{tos?.markdown}</ReactMarkdown>
</div>
</div>
);
}