// components/HeaderBell.tsx import { MainColor } from "@/constants/color-palet"; import { ICON_SIZE_SMALL } from "@/constants/constans-value"; import { useNotificationStore } from "@/hooks/use-notification-store"; import { Ionicons } from "@expo/vector-icons"; import { router } from "expo-router"; import { useEffect } from "react"; import { Text, View } from "react-native"; export default function AdminNotificationBell() { const { unreadCount, syncUnreadCount } = useNotificationStore(); useEffect(() => { console.log("Syncing unread count"); syncUnreadCount(); }, [syncUnreadCount]); return ( {unreadCount > 0 && ( {unreadCount > 9 ? "9+" : unreadCount} )} ); }