Files

25 lines
680 B
TypeScript
Raw Normal View History

2023-11-06 17:27:50 +08:00
import { articleDetail } from "@/app/_services/articles";
import ArticleRender from "@/app/_components/ArticleRender";
import ArticleWithBreadcrumb from "@/app/_components/ArticleWithBreadcrumb";
2023-10-27 17:29:50 +08:00
export default async function Article({
params,
}: {
params: {
articleId: string;
};
}) {
const data = await articleDetail({ id: params.articleId });
2023-11-01 17:27:06 +08:00
return (
<ArticleWithBreadcrumb
breadcrumb={[
{ title: "首页", href: "/" },
{ title: "公告通知", href: "/announcements/pages/1" },
{ title: data.title, href: `/announcements/${data.id}` },
]}
>
<ArticleRender article={data} />
</ArticleWithBreadcrumb>
);
2023-10-27 17:29:50 +08:00
}