import theme from '../../../config/theme'; import { HermesNotification, HermesNotificationPriority, HermesNotificationSender, HermesNotificationSenderType, HermesNotificationType, } from './types'; export const notificationStates: Record< string, { notification: HermesNotification; styles: Record } > = { noPerms: { notification: { sender: { type: HermesNotificationSenderType.system, id: HermesNotificationSender.PERMS, }, payload: { title: 'Acepta los permisos para notificaciones', body: 'Acepta y refresca la página para que puedas recibir notificaciones', image: '', data: {}, }, action: { name: 'ACEPTAR PERMISOS', redirectUrl: '', }, id: 'noPerms', createdAt: Date.now().toLocaleString(), priority: HermesNotificationPriority.HIGH, type: HermesNotificationType.INFO, to: { type: 'PUSH', value: 'system', }, }, styles: { bgColor: theme.palette.packing.cake, textColor: theme.palette.warning.main, }, }, error: { notification: { sender: { type: HermesNotificationSenderType.system, id: HermesNotificationSender.ERROR, }, payload: { title: 'Hubo un problema al recolectar las notificaciones del sistema', body: 'Parece que estamos teniendo problemas al intentar recolectar las notificaciones del sistema. Intenta en unos segundos de nuevo', image: '', data: {}, }, action: { name: 'RECARGAR PAGINA', redirectUrl: '/', }, id: 'error', createdAt: Date.now().toLocaleString(), priority: HermesNotificationPriority.HIGH, type: HermesNotificationType.INFO, to: { type: 'PUSH', value: 'system', }, }, styles: { bgColor: theme.palette.error.light, textColor: theme.palette.error.main, }, }, };