Estudando conceitos do react com ant design.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

16 lines
404 B

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
}