import qrcodeUrl from "raw:~/public/wx/gzh.jpg" import React, { useState } from "react" import { i18n } from "~tools" import { editQRCodeImg } from "~utils/makerQRPost" const boxStyles = { box: { position: "fixed" as const, border: "1px solid #D9DADC", left: "25px", top: "85px", width: "140px", padding: "16px", cursor: "pointer" }, close: { position: "absolute" as const, top: "-5px", right: "0px", background: "none", border: "none", fontSize: "20px", cursor: "pointer", padding: "10px" }, img: { width: "100%" }, item: { color: "#000000", fontSize: "16px", marginBottom: "3px" } } export default function ToolBox(props: any) { const [isShowTag, setIsShowTag] = useState(true) const handleGetDescription = () => { props.onGetDescription() } const handleEditMarkdown = () => { props.onEditMarkdown() } const handleDownloadMarkdown = () => { props.onDownloadMarkdown() } const handleParseMarkdown = () => { props.onParseMarkdown() } const handlePrint = () => { props.onPrint() } const getArticle = () => { const href = encodeURIComponent(location.href) window.open(`https://paywallbuster.com/articles/?article=${href}`) } const handleClose = () => { setIsShowTag(false) } return isShowTag ? (
) : ( <>> ) }