import { notification } from "antd"; import { IconType, NotificationInstance } from "antd/es/notification/interface"; const [api, contextHolder] = notification.useNotification(); const openNotification = (message:string, description:string, type:IconType) => { api.open({ type:type, message: message, description: description, }); }; export { openNotification }