- {user.profilePic && user.profilePic !== "DELETE" ? (
-
-
-
- setUser({
- ...user,
- profilePic: "DELETE",
- })
- }
- className="absolute top-1 left-1 w-5 h-5 flex items-center justify-center border p-1 bg-white border-sky-100 rounded-full text-gray-500 hover:text-red-500 duration-100 cursor-pointer"
- >
-
-
+
+ {user.profilePic && (
+
+ setUser({
+ ...user,
+ profilePic: "",
+ })
+ }
+ className="absolute top-1 left-1 w-5 h-5 flex items-center justify-center border p-1 bg-white border-slate-200 rounded-full text-gray-500 hover:text-red-500 duration-100 cursor-pointer"
+ >
+
- ) : (
-
)}