/**
 * App-wide toast (same stack as Pages: vue3-toastify via useStoreHelpers).
 */
import { showToast } from '@/composables/useStoreHelpers'

/**
 * @returns {{ showToast: typeof showToast, success: Function, error: Function, info: Function, warning: Function }}
 */
export function useAppToast() {
  return {
    showToast,
    success: (message, title = '') => showToast('success', title, message),
    error: (message, title = '') => showToast('error', title, message),
    info: (message, title = '') => showToast('info', title, message),
    warning: (message, title = '') => showToast('warning', title, message),
  }
}
