// components/HeaderBell.tsx import { MainColor } from "@/constants/color-palet"; import { useAuth } from "@/hooks/use-auth"; import { useNotificationStore } from "@/hooks/use-notification-store"; import { Ionicons } from "@expo/vector-icons"; import { router } from "expo-router"; import { Text, View } from "react-native"; export default function HeaderBell() { const { unreadCount } = useNotificationStore(); const { user } = useAuth(); const pathDetector = user?.masterUserRoleId === "1" ? "/notifications" : "/admin/notification"; return ( { router.push(pathDetector); }} /> {unreadCount > 0 && ( {unreadCount > 9 ? "9+" : unreadCount} )} ); }