import React from "react"; import { Button, Progress } from "antd"; import type { OpenNotificationParams } from "@refinedev/core"; import { UndoOutlined } from "@ant-design/icons"; export type UndoableNotificationProps = { notificationKey: OpenNotificationParams["key"]; message: OpenNotificationParams["message"]; cancelMutation: OpenNotificationParams["cancelMutation"]; undoableTimeout: OpenNotificationParams["undoableTimeout"]; }; export const UndoableNotification: React.FC = ({ message, cancelMutation, undoableTimeout, }) => (
time && time / 20} size={50} strokeColor="#1890ff" status="normal" /> {message}
);