import toast from 'react-hot-toast'

export const showToast = {
  success: (message: string) => {
    toast.success(message, {
      duration: 4000,
      style: {
        background: '#C4737E',
        color: 'white',
        borderRadius: '12px',
        fontSize: '14px',
        fontWeight: '500',
      },
      iconTheme: {
        primary: '#C4737E',
        secondary: 'white',
      },
    })
  },
  
  error: (message: string) => {
    toast.error(message, {
      duration: 5000,
      style: {
        background: '#C94C4C',
        color: 'white',
        borderRadius: '12px',
        fontSize: '14px',
        fontWeight: '500',
      },
      iconTheme: {
        primary: '#C94C4C',
        secondary: 'white',
      },
    })
  },

  loading: (message: string) => {
    return toast.loading(message, {
      style: {
        background: '#7A6E65',
        color: 'white',
        borderRadius: '12px',
        fontSize: '14px',
        fontWeight: '500',
      },
    })
  },

  dismiss: (toastId: string) => {
    toast.dismiss(toastId)
  }
}