2022-08-27 15:58:36 +02:00
|
|
|
import { CustomNotificationProps, NotificationProps } from '../../notifications/NotificationWrapper';
|
|
|
|
|
import { debugData } from '../../../utils/debugData';
|
2022-08-27 15:40:41 +02:00
|
|
|
|
2023-01-01 14:31:11 +01:00
|
|
|
export const debugCustomNotification = () => {
|
|
|
|
|
debugData<CustomNotificationProps>([
|
2022-08-27 15:40:41 +02:00
|
|
|
{
|
2023-01-01 14:31:11 +01:00
|
|
|
action: 'customNotify',
|
2022-08-27 15:40:41 +02:00
|
|
|
data: {
|
2023-01-01 14:31:11 +01:00
|
|
|
title: 'Success',
|
|
|
|
|
description: 'Notification description',
|
|
|
|
|
type: 'success',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
]);
|
|
|
|
|
debugData<CustomNotificationProps>([
|
|
|
|
|
{
|
|
|
|
|
action: 'customNotify',
|
|
|
|
|
data: {
|
|
|
|
|
title: 'Info',
|
|
|
|
|
description: 'Notification description',
|
|
|
|
|
type: 'info',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
]);
|
|
|
|
|
debugData<CustomNotificationProps>([
|
|
|
|
|
{
|
|
|
|
|
action: 'customNotify',
|
|
|
|
|
data: {
|
|
|
|
|
title: 'Error',
|
|
|
|
|
description: 'Notification description',
|
|
|
|
|
type: 'error',
|
2022-08-27 15:40:41 +02:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
]);
|
2022-08-27 15:55:05 +02:00
|
|
|
debugData<CustomNotificationProps>([
|
2022-08-27 15:40:41 +02:00
|
|
|
{
|
2022-08-27 15:58:36 +02:00
|
|
|
action: 'customNotify',
|
2022-08-27 15:40:41 +02:00
|
|
|
data: {
|
2023-01-01 14:31:11 +01:00
|
|
|
title: 'Custom icon success',
|
|
|
|
|
description: 'Notification description',
|
|
|
|
|
type: 'success',
|
|
|
|
|
icon: 'microchip',
|
2022-08-27 15:40:41 +02:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
]);
|
|
|
|
|
};
|