diff --git a/apps/cm/src/shared/ui/page-layout-title.tsx b/apps/cm/src/shared/ui/page-layout-title.tsx new file mode 100644 index 000000000..3a1e9fef1 --- /dev/null +++ b/apps/cm/src/shared/ui/page-layout-title.tsx @@ -0,0 +1,22 @@ +import { PageTitle } from "@common/components"; +import { useMenuStore } from "../lib/use-menu-store"; + +function PageLayout({ children }: { children: React.ReactNode }) { + const currentMenuInfo = useMenuStore((state) => state.currentMenuInfo); + + const menuPaths = currentMenuInfo?.menuPath + ?.split(">") + .map((path) => path.trim()); + + return ( +
+ + {children} +
+ ); +} + +export { PageLayout }; diff --git a/apps/cm/src/shared/ui/page-layout.tsx b/apps/cm/src/shared/ui/page-layout.tsx index 358d3b5db..8b355dbb4 100644 --- a/apps/cm/src/shared/ui/page-layout.tsx +++ b/apps/cm/src/shared/ui/page-layout.tsx @@ -10,10 +10,7 @@ function PageLayout({ children }: { children: React.ReactNode }) { return (
- + {children}
);