deprecated legacy toast
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
import {Icon, toast} from '#/components/Toast'
|
||||
|
||||
export function show(message: string, legacyIcon?: Icon.LegacyIconName) {
|
||||
/**
|
||||
* @deprecated Use `toast` from '#/components/Toast'
|
||||
*/
|
||||
export function show(message: string, legacyIcon: Icon.LegacyIconName) {
|
||||
toast({message, icon: Icon.compat_convertLegacyIcon(legacyIcon)})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user