@glodon-aiot/react-components
Version:
aiot react components
29 lines (28 loc) • 629 B
JavaScript
import { jsx as r } from "react/jsx-runtime";
import { Alert as i, Button as a } from "antd";
import { DownloadOutlined as c } from "@ant-design/icons";
const p = ({
message: e,
description: t,
action: n,
url: o,
fileName: l
}) => /* @__PURE__ */ r(i, {
className: "document-viewer-alert-full",
message: e,
description: t,
type: "error",
showIcon: !0,
action: n || (o ? /* @__PURE__ */ r(a, {
type: "link",
icon: /* @__PURE__ */ r(c, {}),
href: o,
download: l,
target: "_blank",
rel: "noopener noreferrer",
children: "下载文件"
}) : null)
});
export {
p as ErrorAlert
};