diff --git a/frontend/components/layout/AppLayout.tsx b/frontend/components/layout/AppLayout.tsx index fdb56ed5..f99c72f5 100644 --- a/frontend/components/layout/AppLayout.tsx +++ b/frontend/components/layout/AppLayout.tsx @@ -1,6 +1,6 @@ "use client"; -import { useState } from "react"; +import { useState, Suspense } from "react"; import { useRouter, usePathname, useSearchParams } from "next/navigation"; import { Button } from "@/components/ui/button"; import { @@ -191,7 +191,7 @@ const convertSingleMenu = (menu: MenuItem, allMenus: MenuItem[], userInfo: Exten }; }; -export function AppLayout({ children }: AppLayoutProps) { +function AppLayoutInner({ children }: AppLayoutProps) { const router = useRouter(); const pathname = usePathname(); const searchParams = useSearchParams(); @@ -442,3 +442,20 @@ export function AppLayout({ children }: AppLayoutProps) { ); } + +export function AppLayout({ children }: AppLayoutProps) { + return ( + +
+
+

로딩중...

+
+ + } + > + {children} +
+ ); +}