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 (
Owned by
{datas.owner}