mirror of
https://github.com/027xiguapi/code-box.git
synced 2026-05-01 00:28:37 +00:00
27 lines
686 B
TypeScript
27 lines
686 B
TypeScript
import { BookOutlined, StarTwoTone } from "@ant-design/icons"
|
|
|
|
import { sendToContentScript } from "@plasmohq/messaging"
|
|
|
|
import { i18n } from "~tools"
|
|
|
|
export default function Weixin() {
|
|
async function getThumbMedia() {
|
|
sendToContentScript({
|
|
name: `mp-getMediaResources`
|
|
})
|
|
}
|
|
|
|
return (
|
|
<fieldset>
|
|
<legend>{i18n("weixinConfig")}</legend>
|
|
<div className="item download" onClick={getThumbMedia}>
|
|
<span>
|
|
<StarTwoTone twoToneColor="#eb2f96" style={{ marginRight: "5px" }} />
|
|
{i18n("getMediaResources")}
|
|
</span>
|
|
<BookOutlined style={{ color: "#52c41a", fontSize: "16px" }} />
|
|
</div>
|
|
</fieldset>
|
|
)
|
|
}
|