import { Suspense, lazy } from "react"; import localImgLoad from "../../lib/localImgLoad"; import CountDown from "../Helpers/CountDown"; import { PriceFormatter } from "../Helpers/PriceFormatter"; const VideoElement = lazy(() => import("../VideoCom/VideoElement")); // LAZY IMPORTING VIDEO COMPONENT export default function OfferCard({ datas, hidden = false, setOfferPopout, image_server, }) { let thePrice = PriceFormatter( datas?.price * 0.01, datas?.currency_code, datas?.currency ); let image = `${image_server}${localStorage.getItem("session_token")}/job/${datas.job_uid}` return (
{/* thumbnail image/video */} {datas.job_type == "MEDIA" ? Loading...

}>
:
{hidden &&
}
}
{/* details */}

{datas.title}

{/*

Task Code

{datas.contract}

*/}

Expires


Reward

{thePrice}

Timeline

{`${datas.timeline_days} day(s)`}

); }