import { promptAction } from "@kit.ArkUI";

export  class ToastUtils{

  public static toastCenter(msg:string|Resource){
    promptAction.showToast({
      message: msg,
      duration: 1200,
      alignment:Alignment.Center
    })
  }
  public static toastBottom(msg:string|Resource){
    promptAction.showToast({
      message: msg,
      duration: 1200,
      bottom: 100
    })
  }
}