Refactor alerts to TypeScript, remove react-notification dependency (#34239)

This commit is contained in:
Eugen Rochko authored and GitHub committed 2025-03-25 18:25:07 +00:00
1 parent e1dbbf6c9d
commit 94d71c992e
14 files changed
+171 -121

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
import type { MessageDescriptor } from 'react-intl';
export type TranslatableString = string | MessageDescriptor;
export type TranslatableValues = Record<string, string | number | Date>;
export interface Alert {
key: number;
title?: TranslatableString;
message: TranslatableString;
action?: TranslatableString;
values?: TranslatableValues;
onClick?: () => void;
}