mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 15:06:02 +01:00
46 lines
991 B
TypeScript
46 lines
991 B
TypeScript
import { NotificationProps } from '../../../typings';
|
|
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,
|
|
},
|
|
},
|
|
]);
|
|
};
|