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

21 lines
455 B
TypeScript
Raw Normal View History

2022-08-27 15:58:36 +02:00
import { debugData } from '../../../utils/debugData';
import { AlertProps } from '../../dialog/AlertDialog';
export const debugAlert = () => {
debugData<AlertProps>([
{
2022-08-27 15:58:36 +02:00
action: 'sendAlert',
data: {
2022-08-27 15:58:36 +02:00
header: 'Hello there',
content: 'General kenobi \n Markdown works',
centered: true,
cancel: true,
labels: {
confirm: 'Ok',
cancel: 'Not ok',
},
},
},
]);
};