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) &&