Files
caszl-next/app/_components/ArticleWithBreadcrumb.tsx

20 lines
478 B
TypeScript
Raw Normal View History

2023-11-01 17:27:06 +08:00
import React, { ReactNode } from "react";
2023-11-06 17:27:50 +08:00
import Breadcrumb, { BreadcrumbItem } from "@/app/_components/Breadcrumb";
2023-11-01 17:27:06 +08:00
const ArticleWithBreadcrumb = ({
breadcrumb,
children,
}: {
breadcrumb: BreadcrumbItem[];
children: ReactNode;
}) => {
return (
2023-11-03 17:25:10 +08:00
<div className={"flex h-full flex-col"}>
2023-11-01 17:27:06 +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-11-01 17:27:06 +08:00
</div>
);
};
export default ArticleWithBreadcrumb;