import { CheckCheck, Loader2 } from "lucide-react";
import { NotificationList } from "../components/notifications/NotificationList";
import { Button } from "../components/ui/button";
import { useNotifications } from "../context/NotificationsContext";
import { useTranslation } from "../hooks/useTranslation";
export default function NotificationsPage() {
const { t } = useTranslation();
const {
notifications,
unreadCount,
totalCount,
hasMore,
isLoading,
isLoadingMore,
loadMore,
markAllAsSeen,
deleteOne,
handleNotificationClick,
} = useNotifications();
return (
{t.notifications?.title || "Notifications"}
{t.notifications?.pageDescription || "Review all notifications and export updates."}
{t.notifications?.totalLabel || "Total notifications"}
{totalCount}
{t.notifications?.unreadLabel || "Unread notifications"}
{unreadCount}
{isLoading ? (
{t.notifications?.loading || "Loading notifications..."}
) : (
void handleNotificationClick(item)}
onDelete={(item) => void deleteOne(item)}
/>
)}
{hasMore ? (
) : null}
);
}