text: import Swal from "sweetalert2";
  import pikachugif from "../image/pikachugif.gif";
  
  export function alertSuccess(text) {
    Swal.fire({
      title: text,
      icon: "success",
      timer: 2000,
      showConfirmButton: false,
    });
  }
  
  export function alertError(text) {
    Swal.fire({
      title: text,
      icon: "error",
      timer: 2000,
      showConfirmButton: false,
    });
  }
  
  export function alertErrorClick(text) {
    Swal.fire({
      text: text,
      icon: "error",
    });
  }
  
  export function alertScore(text) {
    let temp = text;
    if (text === 0) {
      temp = "0";
    }
    Swal.fire({
      title: "your score",
      text: temp,
      icon: "success",
    });
  }
  
  export async function alertSure() {
    const result = await Swal.fire({
      title: "Are you Sure ?",
      icon: "warning",
      showCancelButton: true,
      confirmButtonColor: "#3085d6",
      cancelButtonColor: "#d33",
      confirmButtonText: "Sure",
    });
    return result;
  }
  
  export function alertLoading() {
    Swal.fire({
      text: "Loading, please wait . . .",
      imageUrl: pikachugif,
      imageWidth: 400,
      imageHeight: 200,
      imageAlt: "Custom image",
      timer: 1500,
      showConfirmButton: false,
    });
  }
  