'use client'; import * as React from 'react'; import * as Popover from '@radix-ui/react-popover'; import { FilePlus, Filter, Bell, PieChart } from 'lucide-react'; import * as Button from '@/components/ui/button'; import * as CompactButton from '@/components/ui/compact-button'; import * as Divider from '@/components/ui/divider'; import * as LinkButton from '@/components/ui/link-button'; type Notification = { id: string; icon: React.ComponentType; title: string; description: string; time: string; hasIndicator?: boolean; tag?: string; }; const notifications: Notification[] = [ { id: '1', icon: PieChart, title: 'Performance Review Due', description: '5 team members need Q4 evaluation', time: '15 minutes ago', hasIndicator: true, }, { id: '2', icon: FilePlus, title: 'Onboarding Status', description: 'New hire documentation pending for James', time: '1 hour ago', hasIndicator: true, }, ]; export default function HrNotificationsPopover() { return (
Notifications
All Unread
Mark all as read
{notifications.map((notification, index) => ( {index > 0 && }
{notification.title}
{notification.description} {notification.time}
{notification.hasIndicator && (
)}
))}
); }