import React, { useState } from "react"; import { Link } from "react-router-dom"; // import { toast } from "react-toastify"; import localImgLoad from "../../lib/localImgLoad"; import Icons from "../Helpers/Icons"; export default function BlogCardStyle({ className, datas, hidden = false, }) { const [addFavorite, setValue] = useState(datas.whishlisted); const [options, setOption] = useState(false); const favoriteHandler = () => { if (!addFavorite) { setValue(true); } else { setValue(false); } }; return (

Published :

{datas.post_date}

{datas.isActive && ( Active )}
{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 tracking-wide text-xs cursor-pointer" >
    Report
{hidden && (
)}
{/* title */}

{datas.post_title}

); }