MCPcopy
hub / github.com/027xiguapi/code-box / DownloadWord

Function DownloadWord

component/items/downloadWord.tsx:7–25  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

5import { i18n } from "~tools"
6
7export default function DownloadWord(props) {
8 let { name } = props
9
10 async function downloadWord() {
11 sendToContentScript({
12 name: `${name}-downloadWord`
13 })
14 }
15
16 return (
17 <div className="item download" onClick={downloadWord}>
18 <span>
19 <StarTwoTone twoToneColor="#eb2f96" style={{ marginRight: "5px" }} />
20 {i18n("downloadWord")}
21 </span>
22 <DownloadOutlined style={{ color: "#52c41a", fontSize: "16px" }} />
23 </div>
24 )
25}

Callers

nothing calls this directly

Calls 1

i18nFunction · 0.85

Tested by

no test coverage detected