✅ 결제가 완료되었습니다!
{/* 3.1. 결제하기 구현 */}
+ {items.length === 0 ? (
+
결제할 아이템이 없습니다
+ ) : (
+ <>
+
+
+
+ 총 {total.toLocaleString()}원
+
+ >
+ )}
{/* 3.2. 홈으로 가기 버튼 구현 */}
+
);
}
diff --git a/src/app/layout.tsx b/src/app/layout.tsx
index f7fa87e..3725a53 100644
--- a/src/app/layout.tsx
+++ b/src/app/layout.tsx
@@ -1,6 +1,7 @@
import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";
+import { UserProvider } from "@/context/UserContext";
const geistSans = Geist({
variable: "--font-geist-sans",
@@ -27,7 +28,7 @@ export default function RootLayout({
- {children}
+