From f924c25f168790e8af3646c1de73212e12c0279d Mon Sep 17 00:00:00 2001 From: gahusb Date: Wed, 27 May 2026 02:06:23 +0900 Subject: [PATCH] =?UTF-8?q?feat(saju-ui-v2):=20DesktopHeader.jsx=20?= =?UTF-8?q?=E2=80=94=20=EB=A1=9C=EA=B3=A0=20+=205=20=ED=95=AD=EB=AA=A9=20h?= =?UTF-8?q?orizontal=20nav?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/saju/_shell/DesktopHeader.jsx | 57 +++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 src/pages/saju/_shell/DesktopHeader.jsx diff --git a/src/pages/saju/_shell/DesktopHeader.jsx b/src/pages/saju/_shell/DesktopHeader.jsx new file mode 100644 index 0000000..cb01ac1 --- /dev/null +++ b/src/pages/saju/_shell/DesktopHeader.jsx @@ -0,0 +1,57 @@ +import React from 'react'; +import { useNavigate, useLocation } from 'react-router-dom'; +import { NAV_ITEMS } from './BottomNav'; + +function pathToCurrent(pathname) { + if (pathname === '/saju' || pathname === '/saju/') return 'home'; + if (pathname.startsWith('/saju/today')) return 'today'; + if (pathname.startsWith('/saju/compatibility')) return 'match'; + if (pathname.startsWith('/saju/result')) return 'saju'; + if (pathname.startsWith('/saju/me')) return 'me'; + return 'home'; +} + +export default function DesktopHeader() { + const navigate = useNavigate(); + const { pathname } = useLocation(); + const current = pathToCurrent(pathname); + + return ( +
+ + +
+ ); +}