import { useEffect, useState } from "react" import { sendToBackground } from "@plasmohq/messaging" function IndexPopup() { const [data, setData] = useState("") useEffect(() => { const resp = sendToBackground({ name: "test", body: { id: 123 } }).then((res) => { console.log(res); }) console.log(resp) }, []); return (