changed stuff

This commit is contained in:
2024-06-27 07:58:29 +02:00
parent de212c367f
commit 2dca4a5a80
31 changed files with 153 additions and 136 deletions
@@ -9,15 +9,19 @@ import { redirect } from 'next/navigation';
import { Router } from "next/router";
import { useRouter } from 'next/navigation'
import { truncateString } from "@/util/Utils";
// @ts-ignore
import { MDXRemote } from "next-mdx-remote/rsc";
import { ExampleComponent } from "./article";
import ReactDOM from "react-dom";
import renderToString from 'react-dom/server'
import { jsxToString } from "@/app/lib/jsxtostring";
// @ts-ignore
import remarkMdx from "remark-mdx";
// @ts-ignore
import { remark } from "remark";
// @ts-ignore
import strip from 'remark-mdx-to-plain-text';
import { Post } from "@/model/Post";
import { Post } from "@/models";
import { Attributes } from "@sequelize/core";
type ArticlePreviewPost = Attributes<Post>