import React, { 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 TrackItemCard({ datas, hidden = false }) { const [addFavorite, setValue] = useState(false); const [options, setOption] = useState(false); const favoriteHandler = () => { if (!addFavorite) { setValue(true); } else { setValue(false); } }; 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" >
)}
{hidden && (
)}
{/* user */}
user

Owned by {datas.username}

); }