toast.dismiss(t)}
+ className="flex cursor-pointer items-center justify-between gap-3 rounded-lg bg-[linear-gradient(90deg,rgba(57,0,134,0)_16.83%,#6222B7_53.02%,rgba(57,0,134,0)_87.5%),linear-gradient(90deg,#390086_0%,#6222B7_100%)] px-5 py-4 text-sm text-white transition select-none hover:opacity-90"
+ >
+ {link ? (
+
e.stopPropagation()}
+ className="underline hover:no-underline"
+ >
+ {message}
+
+ ) : (
+
{message}
+ )}
+
+
+
+ ),
+ { duration: 10000, position: 'bottom-right' }, // 10 seconds , measured in ms
+ );
+ }, []);
+
+ return null; // this component doesn’t render anything itself
+}