17 lines
487 B
TypeScript
17 lines
487 B
TypeScript
import { getLatestTos } from "@/actions/tos/getTos";
|
|
import TosEditor from "@/components/tos/Editor";
|
|
|
|
export default async function TosPage() {
|
|
const markdown = await getLatestTos();
|
|
|
|
return (
|
|
<div>
|
|
<div className="flex gap-4 justify-between pb-8">
|
|
<h1 className="text-2xl font-bold mb-4">Terms of Service</h1>
|
|
</div>
|
|
<div className="space-y-4 p-1 border rounded-xl bg-muted/20">
|
|
<TosEditor markdown={markdown} />
|
|
</div>
|
|
</div>
|
|
);
|
|
} |