mirror of
https://github.com/nocobase/nocobase
synced 2024-11-17 04:46:05 +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,
|
||
|
});
|
||
|
};
|