import { Bell } from "lucide-react"; import { useTranslation } from "react-i18next"; import { Button } from "@/components/ui/button"; import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, } from "@/components/ui/dropdown-menu"; export default function NotificationDropdown() { const { t } = useTranslation(); const notifications: { id: string; title: string; message: string; time: string; read: boolean; type: string }[] = []; const unread = notifications.filter((n) => !n.read).length; return (
{t("notifications.title")}
{notifications.length === 0 ? (
{t("notifications.empty")}
) : ( notifications.slice(0, 4).map((n) => ( {n.title} {n.message} {n.time} )) )}
); }