import React, { useState } from "react"; import { Link } from "react-router-dom"; import { toast } from "react-toastify"; export default function ProductCardStyleTwo({ className, datas, hidden = false, bg }) { // debugger; const [addFavorite, setValue] = useState(datas.whishlisted); 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 (
{datas?.isActive && ( Active )}
{hidden &&
}
{/* title */}

{datas.post_title || "dummy title..."}

View
); }