Files
quantulr a8b1ad286d update
2023-11-06 17:27:50 +08:00

25 lines
674 B
TypeScript

import { articleDetail } from "@/app/_services/articles";
import ArticleRender from "@/app/_components/ArticleRender";
import ArticleWithBreadcrumb from "@/app/_components/ArticleWithBreadcrumb";
export default async function Article({
params,
}: {
params: {
articleId: string;
};
}) {
const data = await articleDetail({ id: params.articleId });
return (
<ArticleWithBreadcrumb
breadcrumb={[
{ title: "首页", href: "/" },
{ title: "媒体扫描", href: "/media-scan/pages/1" },
{ title: data.title, href: `/media-scan/${data.id}` },
]}
>
<ArticleRender article={data} />
</ArticleWithBreadcrumb>
);
}