Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const show = () => {
Message.show({
type: 'loading',
content:
'Will be closed after 3 seconds or manually click on the close button',
afterClose: () => console.log('Closed the toast'),
})
}
const hide = () => Message.hide()
const help = (title: string) => {
Message.show({
type: 'help',
title,
iconType: iconMap.help,
overlayProps: { className: 'rc-message-toast' },
})
}