Refactoring
This commit is contained in:
@@ -5,7 +5,6 @@ import "@/app/index.css"
|
||||
import styles from "./article.module.css"
|
||||
|
||||
import { MDXComponents, MDXContent } from "mdx/types";
|
||||
import { MDXRemote } from 'next-mdx-remote/rsc'
|
||||
|
||||
export async function ExampleComponent(){
|
||||
return (
|
||||
@@ -16,6 +15,7 @@ export async function ExampleComponent(){
|
||||
export default async function Article(params: { id: string|undefined, title: string|undefined, content: string|undefined, date?:string|undefined } ) {
|
||||
|
||||
const components = { ExampleComponent }
|
||||
const MDXRemote = (await import ('next-mdx-remote/rsc')).MDXRemote;
|
||||
|
||||
return (
|
||||
<article id={`post-${params.id}`} className="bg-background-800 w-[80%] m-auto">
|
||||
|
||||
Reference in New Issue
Block a user