// Centralized toast trigger. App.vue registers the actual snackbar on
// window.__fcToast; this wraps the optional-chaining lookup so call sites
// don't repeat `globalThis.window?.__fcToast?.(...)` everywhere.
//
// opts: { text: string, type?: 'success' | 'error' | 'info' | 'warning' }
export function toast(opts) {
  globalThis.window?.__fcToast?.(opts)
}
