Files
caszl-next/app/components/ArticleContent.tsx

16 lines
436 B
TypeScript
Raw Normal View History

2023-10-27 17:29:50 +08:00
import React from "react";
import { ArticleDetail } from "@/app/types/article";
const ArticleContent = ({ article }: { article: ArticleDetail }) => {
return (
2023-10-29 22:25:16 +08:00
<div className={"px-5 py-4 h-full"}>
2023-10-27 17:29:50 +08:00
<h1 className={"text-[18px] text-[#054786] text-center font-bold"}>
{article.title}
</h1>
<div dangerouslySetInnerHTML={{ __html: article.content }}></div>
</div>
);
};
export default ArticleContent;