import { useState } from "react" export {} import { sendToBackground } from "@plasmohq/messaging" // import styleText from "data-text:antd/dist/antd.css" import type { PlasmoGetStyle } from "plasmo" // import "./popup.scss" import { Button, Rate, Space } from 'antd' import 'antd/dist/antd.css'; // export const getStyle: PlasmoGetStyle = () => { // const style = document.createElement("style") // style.textContent = styleText // return style // } function IndexPopup() { const [data, setData] = useState("") return (

{ console.log('click popu') fetch("https://yapice.smallzhiyuns.com/mock/10/test") .then((data) => { return data.json() }) .then((res) => { console.log(`res`, res) }) // const resp = await sendToBackground({ // name: "ping", // body: { // id: 123 // } // }) // console.log(resp) }}> Welcome to your {" "} Plasmo1123 {" "} Extension!

setData(e.target.value)} value={data} /> View Docsw我爱你
) } export default IndexPopup