import { articleDetail } from "@/app/_services/articles";
import ArticleRender from "@/app/_components/ArticleRender";
import ArticleWithBreadcrumb from "@/app/_components/ArticleWithBreadcrumb";

export default async function ResearchProgress({
  params,
}: {
  params: {
    articleId: string;
  };
}) {
  const data = await articleDetail({ id: params.articleId });
  return (
    <ArticleWithBreadcrumb
      breadcrumb={[
        { title: "首页", href: "/" },
        { title: "科研进展", href: "/research-progress/pages/1" },
        { title: data.title, href: `/research-progress/${data.id}` },
      ]}
    >
      <ArticleRender article={data} />
    </ArticleWithBreadcrumb>
  );
}
