/**
 * useSnackbar composable
 *
 * Centralized snackbar notification wrapper.
 * Eliminates the copy-pasted snackbar() function across all pages.
 * Relies on the global $snackbar function attached by App.vue.
 */

export function useSnackbar() {
  return (text: string, color = 'success') => {
    window.$snackbar?.(text, color)
  }
}
