// components/HeaderBell.tsx import { MainColor } from "@/constants/color-palet"; 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 HeaderBell() { const { notifications , unreadCount} = useNotificationStore(); // console.log("NOTIF:", JSON.stringify(notifications, null, 2)); return ( { router.push("/notifications"); }} /> {unreadCount > 0 && ( {unreadCount > 9 ? "9+" : unreadCount} )} ); }