Refactoring

This commit is contained in:
2024-06-25 08:09:39 +02:00
parent 57375bd902
commit 943267be04
10 changed files with 274 additions and 135 deletions
+1 -1
View File
@@ -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">