mirror of
https://github.com/nocobase/nocobase
synced 2024-11-18 05:46:41 +00:00
9 lines
169 B
TypeScript
9 lines
169 B
TypeScript
|
import { notification } from 'antd';
|
||
|
|
||
|
export const showToast = (message, type = 'info', duration = 5000) => {
|
||
|
notification[type]({
|
||
|
message,
|
||
|
duration,
|
||
|
});
|
||
|
};
|