import { useNavigate } from '@/shared/lib/hooks/use-navigate'; import { Menu } from '@/shared/ui/menu'; import { IMAGE_ROOT } from '@/shared/constants/common'; import { PATHS } from '@/shared/constants/paths'; import { HeaderType, HeaderNavigationProps } from '@/entities/common/model/types'; export const HeaderNavigation = ({ onBack, headerTitle, menuOn, headerType, setMenuOn }: HeaderNavigationProps) => { const { navigate, navigateBack } = useNavigate(); const handleBack = () => { if(onBack){ onBack(); } else{ navigateBack(); } }; const handleClose = () => { if(onBack){ onBack(); } else{ navigateBack(); } }; const onClickToGoToAlarm = () => { navigate(PATHS.alarm.list); }; return ( <> { (headerType === HeaderType.Home || headerType === HeaderType.Alim || headerType === HeaderType.LeftArrow ) && } { (headerType !== HeaderType.NoHeader) &&
{ // 홈에서만 적용 (headerType === HeaderType.Home) &&

나이스가맹점관리자

{ /* */ }
} { (headerType === HeaderType.Alim) &&
{ headerTitle }
} { (headerType === HeaderType.LeftArrow) &&
{ headerTitle }
} { (headerType === HeaderType.RightClose) &&
{ headerTitle }
}
} ); };