/**
 * Toast Usage Examples
 *
 * Import any of these functions to show toasts in your components
 */

import {
  toastSuccess,
  toastError,
  toastWarning,
  toastInfo,
  toastCustom,
  showToast,
  customizeToast,
} from "@/lib/toast";

// Example usage functions (for reference only)

export const exampleUsage = {
  // Basic success toast (auto-dismiss after 4 seconds, top-center)
  showSuccess: () => {
    toastSuccess("Activity type created successfully!");
  },

  // Basic error toast (manual dismiss, bottom-end)
  showError: () => {
    toastError("This Activity type already exists");
  },

  // Warning toast
  showWarning: () => {
    toastWarning("Please check your input");
  },

  // Info toast
  showInfo: () => {
    toastInfo("Processing your request...");
  },

  // Custom toast with options
  showCustom: () => {
    showToast("Custom message", "success", {
      duration: 6000,
      placement: "top-start",
      closable: true,
    });
  },

  // Advanced custom toast with content
  showAdvanced: () => {
    toastCustom(
      "Operation Complete",
      "Your data has been saved successfully. You can now continue with the next step.",
      "success",
      { duration: 8000, placement: "top-center" }
    );
  },

  // Legacy function (backward compatibility)
  showLegacy: () => {
    customizeToast("Legacy toast message", "danger");
  },
};

/**
 * Usage in your components:
 *
 * import { toastSuccess, toastError } from '@/lib/toast';
 *
 * // In your component
 * const handleSubmit = async () => {
 *   try {
 *     await createActivityType(data);
 *     toastSuccess("Activity type created successfully!");
 *   } catch (error) {
 *     toastError("Failed to create activity type");
 *   }
 * };
 */
