36 lines
782 B
TypeScript
36 lines
782 B
TypeScript
"use client";
|
|
|
|
import { PageTitle } from "@common/components";
|
|
|
|
const mockCurrentMenuInfo = {
|
|
menuCd: 0,
|
|
menuKornNm: "메인",
|
|
menuEngNm: "Main",
|
|
parentId: null,
|
|
sortSeq: 0,
|
|
children: null,
|
|
levelNo: 0,
|
|
urlPath: "/",
|
|
menuLnkgTypeCd: "",
|
|
menuLnkgSn: 0,
|
|
menuPath: "메인",
|
|
qrcd: "",
|
|
useYn: "Y",
|
|
otptYn: "Y",
|
|
newWndwYn: "N",
|
|
requiredUrlPath: false,
|
|
};
|
|
|
|
function PageLayout({ children }: { children: React.ReactNode }) {
|
|
const menuPaths = mockCurrentMenuInfo.menuPath.split(">").map((path) => path.trim());
|
|
|
|
return (
|
|
<div className="bg-container h-auto min-h-full pb-2">
|
|
<PageTitle title={mockCurrentMenuInfo.menuKornNm} menuPaths={menuPaths} />
|
|
{children}
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export { PageLayout };
|