import { MDXComponentsSet } from "@/components/mdx"; import { normalizeDate } from "@/lib/date"; import type { TPostFrontmatter, TPostListItem, TPostTOCItem } from "@/types/docs.type"; import { nanoid } from "nanoid"; import { MDXRemote, type MDXRemoteSerializeResult } from "next-mdx-remote"; import Link from "next/link"; export const PostRender = (props: { compiledSource: MDXRemoteSerializeResult; tocList: TPostTOCItem[]; frontMatter: TPostFrontmatter; postId: string; nextPostListItem: TPostListItem | null; prevPostListItem: TPostListItem | null; }) => { const compiledSource = props.compiledSource; return (
{props.frontMatter?.summary}
)} {props.frontMatter.tags && (