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

20 lines
477 B
TypeScript
Raw Normal View History

2023-11-01 17:27:06 +08:00
import React, { ReactNode } from "react";
import Breadcrumb, { BreadcrumbItem } from "@/app/components/Breadcrumb";
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;