"use client"; import { useState } from "react"; import { Bell } from "lucide-react"; import { useAppTheme } from "@/components/ThemeProvider"; interface Notification { id: string; title: string; message: string; time: string; read: boolean; } export default function NotificationsPage() { const [notifications, setNotifications] = useState([ { id: "1", title: "New appointment scheduled", message: "John Smith booked an appointment for tomorrow", time: "2 hours ago", read: false, }, { id: "2", title: "Payment received", message: "Payment of $150 received from Jane Doe", time: "5 hours ago", read: false, }, { id: "3", title: "Appointment Reminder", message: "You have an appointment in 30 minutes with Emily Davis", time: "3 hours ago", read: false, }, { id: "4", title: "New Message", message: "You received a new message from John Smith", time: "5 hours ago", read: true, }, { id: "5", title: "Appointment Cancelled", message: "Robert Wilson cancelled his appointment scheduled for tomorrow", time: "1 day ago", read: true, }, ]); const unreadCount = notifications.filter((n) => !n.read).length; const { theme } = useAppTheme(); const isDark = theme === "dark"; return (
{/* Main Content */}
{/* Page Header */}

Notifications

{unreadCount > 0 && ( {unreadCount} new )}
{/* Notifications List */}
{notifications.length === 0 ? (

No notifications

) : (
{notifications.map((notification) => { return (

{notification.title}

{!notification.read && ( )}

{notification.message}

{notification.time}

); })}
)}
); }