Files

40 lines
980 B
TypeScript
Raw Normal View History

2023-11-06 17:27:50 +08:00
import ArticleWithBreadcrumb from "@/app/_components/ArticleWithBreadcrumb";
import ArticleRender from "@/app/_components/ArticleRender";
import { articleDetail } from "@/app/_services/articles";
2023-11-01 17:27:06 +08:00
const Page = async ({
params,
}: {
params: {
articleId: string;
};
}) => {
const { articleId } = params;
const data = await articleDetail({ id: articleId });
return (
<>
2023-11-07 17:14:42 +08:00
<ArticleWithBreadcrumb
breadcrumb={[
{ title: "首页", href: "/" },
{
title: "学术交流",
href: "/academic-exchange/academic-events/pages/1",
},
{
title: "学术活动",
href: "/academic-exchange/academic-events/pages/1",
},
{
title: data.title,
href: `/academic-exchange/academic-events/${data.id}`,
},
]}
>
2023-11-01 17:27:06 +08:00
<ArticleRender article={data} />
</ArticleWithBreadcrumb>
</>
);
};
export default Page;