/**
 * 封装的 Toast 工具函数
 * 便于在测试环境中进行模拟
 */
import Taro from '@tarojs/taro'

export interface ToastOptions {
  title: string
  icon?: 'success' | 'loading' | 'none' | 'error'
  duration?: number
}

export const showToast = (options: ToastOptions) => {
  Taro.showToast(options)
}