♻️ Use sanity

This commit is contained in:
2024-02-24 21:56:35 +08:00
parent 4b05046a17
commit 1a9ada9e0e
32 changed files with 8441 additions and 194 deletions

View File

@@ -1,7 +1,7 @@
"use client";
import Markdown from "react-markdown";
import { PortableText } from "@portabletext/react";
export default function PostContent({ content }: { content: string }) {
return <Markdown>{content}</Markdown>;
}
export default function PostContent({ content }: { content: any }) {
return <PortableText value={content} />;
}