// components/HeaderBell.tsx import { Ionicons } from "@expo/vector-icons"; import { View, Text } from "react-native"; import { router } from "expo-router"; import { useNotificationStore } from "@/hooks/use-notification-store"; import { MainColor } from "@/constants/color-palet"; export default function HeaderBell() { const { notifications } = useNotificationStore(); const unreadCount = notifications.filter((n) => !n.read).length; // console.log("NOTIF:", JSON.stringify(notifications, null, 2)); return ( { router.push("/notifications"); }} /> {unreadCount > 0 && ( {unreadCount > 9 ? "9+" : unreadCount} )} ); }