import { toast } from '@zerodevx/svelte-toast'

export const success = (message: string) => toast.push(message, {
  theme: {
    '--toastBackground': '#4caf50',
    '--toastProgressBackground': '#81c784',
    '--toastProgressAfterBackground': '#4caf50',
    '--toastColor': '#fff',
  }
})

export const error = (message: string) => toast.push(message, {
  theme: {
    '--toastBackground': '#f44336',
    '--toastProgressBackground': '#e57373',
    '--toastProgressAfterBackground': '#f44336',
    '--toastColor': '#fff',
  }
})