Files

20 lines
566 B
TypeScript
Raw Normal View History

2023-10-30 17:29:35 +08:00
import React, { ReactNode } from "react";
2023-11-06 17:27:50 +08:00
import Breadcrumb from "@/app/_components/Breadcrumb";
2023-10-30 17:29:35 +08:00
const breadcrumb = [
{ href: "/", title: "首页" },
{ href: "/organization/overview", title: "机构设置" },
{ href: "/organization/research-platform", title: "科研平台" },
];
const Layout = ({ children }: { children: ReactNode }) => {
return (
2023-11-03 17:25:10 +08:00
<div className={"flex h-full flex-col"}>
2023-10-30 17:29:35 +08:00
<Breadcrumb navigations={breadcrumb} />
2023-11-03 17:25:10 +08:00
<div className={"mt-2 flex-1 bg-white px-5 py-4"}>{children}</div>
2023-10-30 17:29:35 +08:00
</div>
);
};
export default Layout;