Files
ox_lib/web/src/features/dev/debug/notification.ts

47 lines
1.1 KiB
TypeScript
Raw Normal View History

2022-08-27 15:58:36 +02:00
import { CustomNotificationProps, NotificationProps } from '../../notifications/NotificationWrapper';
import { debugData } from '../../../utils/debugData';
export const debugCustomNotification = () => {
debugData<CustomNotificationProps>([
{
action: 'customNotify',
data: {
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',
},
},
]);
debugData<CustomNotificationProps>([
{
2022-08-27 15:58:36 +02:00
action: 'customNotify',
data: {
title: 'Custom icon success',
description: 'Notification description',
type: 'success',
icon: 'microchip',
},
},
]);
};