import React from "react"; import { Button, notification, Progress } from "antd"; import { OpenNotificationParams } from "@pankod/refine-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 = ({ notificationKey, message, cancelMutation, undoableTimeout, }) => (
time && time / 20} width={50} strokeColor="#1890ff" status="normal" /> {message}
);