/** * Notification Log - View notification history */ import { __ } from '@wordpress/i18n'; import { Icon, bell, mail, message } from '@wordpress/icons'; import './NotificationLog.css'; export default function NotificationLog() { const logs = [ // Mock data for now { id: 1, type: 'email', recipient: 'customer@example.com', subject: 'Order Confirmation', status: 'sent', date: new Date().toISOString(), }, ]; const getIcon = (type) => { switch (type) { case 'email': return mail; case 'sms': case 'whatsapp': return message; default: return bell; } }; return (

{ __('Notification Log', 'formipay') }

{logs.length === 0 ? (

{ __('No notifications sent yet', 'formipay') }

) : ( )}
); }