import { Link, useLocation } from "react-router-dom"; /** 경로 → breadcrumb 레이블 매핑 */ const pathLabels: Record = { "/": "Home", "/dashboard": "대시보드", "/services": "서비스 관리", "/services/register": "서비스 등록", "/messages": "메시지 관리", "/messages/register": "메시지 등록", "/statistics": "발송 통계", "/statistics/history": "발송 이력", "/devices": "기기 관리", "/tags": "태그 관리", "/settings": "마이 페이지", "/settings/profile": "프로필 수정", "/settings/notifications": "알림", }; export default function AppHeader() { const location = useLocation(); const isHome = location.pathname === "/"; const currentLabel = pathLabels[location.pathname] ?? "페이지"; return (
{/* 브레드크럼 */} {/* 우측 아이콘 */}
{/* 알림 */} {/* 구분선 */}
{/* 프로필 */} account_circle
); }