import variables from 'modules/variables'; import { MdClose, MdEmail, MdContentCopy } from 'react-icons/md'; import { FaTwitter, FaFacebookF } from 'react-icons/fa'; import { AiFillWechat } from 'react-icons/ai'; import { SiTencentqq } from 'react-icons/si'; import Tooltip from '../tooltip/Tooltip'; import { toast } from 'react-toastify'; import './sharemodal.scss'; export default function ShareModal({ modalClose, data }) { const getMessage = (text) => variables.language.getMessage(variables.languagecode, text); const url = variables.constants.MARKETPLACE_URL + '/share/' + btoa(data.api_name); const copyLink = () => { navigator.clipboard.writeText(url); toast('Link copied!'); }; return (
Share
{/* i think that wechat has no actual share function outside of qrcodes, as the only example of a share to wechat button i've seen used this api * this requires some investigating before we deploy to production */ }
); }