import { useState } from "react"; import { Link } from "react-router-dom"; import { toast } from "react-toastify"; import localImgLoad from "../../lib/localImgLoad"; import CountDown from "../Helpers/CountDown"; import Icons from "../Helpers/Icons"; export default function ProductCardStyleOne({ datas, hidden = false }) { const [imageUrl, setImageUrl] = useState(""); const [addFavorite, setValue] = useState(false); const [options, setOption] = useState(false); const favoriteHandler = () => { if (!addFavorite) { setValue(true); toast.success("Added to Favorite List"); } else { setValue(false); toast.warn("Remove to Favorite List"); } }; return (
{/* thumbnail */}
{/* thumbnail image */}
setOption(!options)} className="w-7 h-7 flex justify-center items-center bg-white rounded-full cursor-pointer" > {options && (
setOption(!options)} className="w-full h-screen fixed top-0 left-0 z-10" >
)}
  • setOption(!options)} className="text-thin-light-gray tracking-wide text-xs cursor-pointer" >
    Share
  • setOption(!options)} className="text-thin-light-gray dark:text-white tracking-wide text-xs cursor-pointer" >
    Report
{hidden && (
)}
{/* user */}
user

Owned by {datas.username}

{/* details */}
{/* product title */} {datas.title} {/* countdown */}

Current Bid

{datas.price}

Remaing Time

Place a Bid View Art Work
); }