import Link from "next/link"; import type { UserNotification } from "@prisma/client"; import { Bell } from "lucide-react"; import { EmptyState } from "@/components/shared/page-shell"; import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; import { buttonVariants } from "@/components/ui/button"; import { NotificationItem } from "./notification-item"; interface NotificationListProps { notifications: UserNotification[]; unreadCount: number; } export function NotificationList({ notifications, unreadCount }: NotificationListProps) { return ( 全部消息 未读 {unreadCount} {notifications.length === 0 ? ( } title="现在很安静" description="支付结果、订阅状态和系统提醒会集中出现在这里。" action={ 浏览套餐 } className="border-0 bg-transparent py-10" /> ) : (
{notifications.map((notification) => (
))}
)}
); }