'use client'; import * as React from 'react'; import * as Popover from '@radix-ui/react-popover'; import { Plus, MessageCircle, Crosshair, MoreHorizontal, Bell, Settings2, UserRound, } 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; }; const notifications: Notification[] = [ { id: '1', icon: UserRound, iconColor: 'text-information-base', title: 'New Lead Generated', description: 'John Smith submitted web form', time: '10 minutes ago', }, { id: '2', icon: Crosshair, iconColor: 'text-away-base', title: 'Campaign Milestone', description: 'Black Friday campaign hit 150% target', time: '3 days ago', hasIndicator: true, }, { id: '3', icon: MessageCircle, iconColor: 'text-feature-base', title: 'Live Chat Interaction', description: 'John Smith submitted web form', time: '4 days ago', }, ]; const Divider = ({ className }: { className?: string }) => { return (
); }; export default function MarketingNotificationsPopover() { return (
Notifications
{notifications.map((notification) => (
{notification.title}
{notification.hasIndicator && (
)}
{notification.description}
{notification.time}
))}
Archive All
); }