'use client'; import * as React from 'react'; import * as Popover from '@radix-ui/react-popover'; import { CheckCircle2, Filter, Crosshair, Bell, Settings2 } from 'lucide-react'; import { cn } from '@/utils/cn'; import * as Button from '@/components/ui/button'; import * as CompactButton from '@/components/ui/compact-button'; type Notification = { id: string; icon: React.ComponentType; iconColor: string; title: string; description: string; time: string; hasIndicator?: boolean; tag?: string; }; const notifications: Notification[] = [ { id: '1', icon: Crosshair, iconColor: 'text-warning-base', tag: 'Marketing', title: "There's a drop in campaign performance", description: 'Critical drop in conversion rates affecting Q4 targets requires immediate review and optimization of current marketing strategies.', time: '2 minutes ago', hasIndicator: true, }, ]; const Divider = ({ className }: { className?: string }) => { return (
); }; export default function EmptyNotificationsPopover() { return (
Notifications
{notifications.map((notification) => (
{notification.hasIndicator && (
)}
{notification.tag && ( {notification.tag} )} ยท {notification.time}
{notification.title}
{notification.description}
))}
No more notifications
); }