mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
33 lines
769 B
TypeScript
33 lines
769 B
TypeScript
import { NotificationProvider } from "@refinedev/core";
|
|
|
|
/**
|
|
* Check out the Notification Provider documentation for detailed information
|
|
* https://refine.dev/docs/api-reference/core/providers/notification-provider/
|
|
**/
|
|
export const notificationProvider: NotificationProvider = {
|
|
open: ({
|
|
message,
|
|
type,
|
|
description,
|
|
key,
|
|
cancelMutation,
|
|
undoableTimeout,
|
|
}) => {
|
|
console.log("open", {
|
|
message,
|
|
type,
|
|
description,
|
|
key,
|
|
cancelMutation,
|
|
undoableTimeout,
|
|
});
|
|
|
|
// TODO: open the notification
|
|
},
|
|
close: (key: string) => {
|
|
console.log("close", { key });
|
|
|
|
// TODO: close the notification
|
|
},
|
|
};
|