"use client"; import React from "react"; import { Trash2, TrendingUp, Bell } from "lucide-react"; import { formatCurrency } from "@/lib/utils"; import { deleteAlert } from "@/lib/actions/alert.actions"; interface AlertsPanelProps { alerts: any[]; onRefresh?: () => void; } export default function AlertsPanel({ alerts, onRefresh }: AlertsPanelProps) { const handleDelete = async (id: string) => { if (confirm("Are you sure you want to delete this alert?")) { await deleteAlert(id); if (onRefresh) onRefresh(); } }; return (