"use client"; import Link from "next/link"; import { Home, Building, Calendar, Heart, Bell, Settings } from "lucide-react"; import React, { useEffect, useState } from "react"; import { useNotifications } from "@/app/contexts/NotificationsContext"; export default function BottomNav({ isOwner }) { const { unreadCount } = useNotifications(); const [isMounted, setIsMounted] = useState(false); const bookingsHref = isOwner ? "/owner/reservations" : "/reservations"; useEffect(() => { setIsMounted(true); }, []); const items = [ { href: "/", label: "الرئيسية", icon: Home }, { href: "/properties", label: "عقاراتنا", icon: Building }, { href: bookingsHref, label: "الحجوزات", icon: Calendar }, { href: "/favorites", label: "المفضلة", icon: Heart }, { href: "/notifications", label: "الإشعارات", icon: Bell, badge: isMounted ? unreadCount : 0 }, { href: "/settings", label: "الإعدادات", icon: Settings }, ]; return ( ); }