UNPKG

@glodon-aiot/react-components

Version:

aiot react components

19 lines (18 loc) 398 B
import { jsx as o } from "react/jsx-runtime"; import { Button as t } from "antd"; import { DownloadOutlined as e } from "@ant-design/icons"; const m = ({ url: r, fileName: n }) => /* @__PURE__ */ o(t, { type: "link", icon: /* @__PURE__ */ o(e, {}), href: r, download: n, target: "_blank", rel: "noopener noreferrer", children: "下载文件" }); export { m as DownloadButton };