feat: 공지게시판 목록 작업

This commit is contained in:
2025-04-29 16:08:23 +09:00
parent 9d3b110077
commit 6ba562a1b4
143 changed files with 294 additions and 9731 deletions
@@ -1,19 +1,15 @@
import { PageTitle } from "@common/components";
import { useMenuStore } from "../lib/use-menu-store";
function PageLayout({ children }: { children: React.ReactNode }) {
const { currentMenuInfo } = useMenuStore((state) => state);
const menuPaths = currentMenuInfo?.menuPath
?.split(">")
.map((path) => path.trim());
type PageLayoutProps = {
title: string;
menuPaths: string[];
children: React.ReactNode;
};
function PageLayout({ children, ...props }: PageLayoutProps) {
return (
<div className="h-auto min-h-full bg-container pb-2">
<PageTitle
title={currentMenuInfo?.menuKornNm ?? ""}
menuPaths={menuPaths ?? []}
/>
<PageTitle {...props} />
{children}
</div>
);