import React from 'react'; import { useNavigate, useLocation } from 'react-router-dom'; import BrandMark from './BrandMark'; import { IconChevron } from './Icons'; const NAV_ITEMS = [ { id: 'today', to: '/saju/today', label: '오늘의 운세' }, { id: 'match', to: '/saju/compatibility', label: '궁합보기' }, { id: 'saju', to: '/saju/result', label: '사주풀이' }, { id: 'me', to: '/saju/me', label: '상담안내' }, ]; function pathToCurrent(pathname) { 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 (
); }