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 ( +
+ + +
+ ); +}