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

46 lines
991 B
TypeScript
Raw Normal View History

import { NotificationProps } from '../../../typings';
2022-08-27 15:58:36 +02:00
import { debugData } from '../../../utils/debugData';
export const debugCustomNotification = () => {
debugData<NotificationProps>([
{
action: 'notify',
data: {
title: 'Success',
description: 'Notification description',
type: 'success',
id: 'pogchamp',
duration: 20000,
style: {
'.description': {
color: 'red',
},
},
},
},
]);
debugData<NotificationProps>([
{
action: 'notify',
data: {
title: 'Error',
description: 'Notification description',
type: 'error',
position: "bottom"
},
},
]);
debugData<NotificationProps>([
{
action: 'notify',
data: {
title: 'Custom icon success',
description: 'Notification description',
type: 'success',
icon: 'microchip',
showDuration: false,
},
},
]);
};