Files
quantulr 1a22404f19 update
2023-11-01 17:27:06 +08:00

24 lines
535 B
TypeScript

import ArticleWithBreadcrumb from "@/app/components/ArticleWithBreadcrumb";
import ArticleRender from "@/app/components/ArticleRender";
import { articleDetail } from "@/app/api/articles";
const Page = async ({
params,
}: {
params: {
articleId: string;
};
}) => {
const { articleId } = params;
const data = await articleDetail({ id: articleId });
return (
<>
<ArticleWithBreadcrumb breadcrumb={[]}>
<ArticleRender article={data} />
</ArticleWithBreadcrumb>
</>
);
};
export default Page;