22 lines
666 B
TypeScript
22 lines
666 B
TypeScript
import { ReactNode } from "react";
|
|
import ArticleLayout from "@/app/components/ArticleLayout";
|
|
import { BreadcrumbItem } from "@/app/components/Breadcrumb";
|
|
import ArticleWithBreadcrumb from "@/app/components/ArticleWithBreadcrumb";
|
|
|
|
const breadcrumb: BreadcrumbItem[] = [
|
|
{ title: "首页", href: "/" },
|
|
{ title: "综合新闻", href: "/general-news/pages/1" },
|
|
];
|
|
|
|
const Layout = ({ children }: { children: ReactNode }) => {
|
|
return (
|
|
<ArticleLayout navigations={[]} leftNavTitle={"综合新闻"}>
|
|
<ArticleWithBreadcrumb breadcrumb={breadcrumb}>
|
|
{children}
|
|
</ArticleWithBreadcrumb>
|
|
</ArticleLayout>
|
|
);
|
|
};
|
|
|
|
export default Layout;
|