UNPKG

antd

Version:

An enterprise-class UI design language and React components implementation

59 lines (58 loc) 2.41 kB
"use client"; import * as React from 'react'; import { FastColor } from '@ant-design/fast-color'; import { useLocale } from '../locale'; import { useToken } from '../theme/internal'; const Empty = () => { const [, token] = useToken(); const [locale] = useLocale('Empty'); const bgColor = new FastColor(token.colorBgBase); // Dark Theme need more dark of this const themeStyle = bgColor.toHsl().l < 0.5 ? { opacity: 0.65 } : {}; return /*#__PURE__*/React.createElement("svg", { style: themeStyle, width: "184", height: "152", viewBox: "0 0 184 152", xmlns: "http://www.w3.org/2000/svg" }, /*#__PURE__*/React.createElement("title", null, locale?.description || 'Empty'), /*#__PURE__*/React.createElement("g", { fill: "none", fillRule: "evenodd" }, /*#__PURE__*/React.createElement("g", { transform: "translate(24 31.7)" }, /*#__PURE__*/React.createElement("ellipse", { fillOpacity: ".8", fill: "#F5F5F7", cx: "67.8", cy: "106.9", rx: "67.8", ry: "12.7" }), /*#__PURE__*/React.createElement("path", { fill: "#aeb8c2", d: "M122 69.7 98.1 40.2a6 6 0 0 0-4.6-2.2H42.1a6 6 0 0 0-4.6 2.2l-24 29.5V85H122z" }), /*#__PURE__*/React.createElement("path", { fill: "#f5f5f7", d: "M33.8 0h68a4 4 0 0 1 4 4v93.3a4 4 0 0 1-4 4h-68a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4" }), /*#__PURE__*/React.createElement("path", { fill: "#dce0e6", d: "M42.7 10h50.2a2 2 0 0 1 2 2v25a2 2 0 0 1-2 2H42.7a2 2 0 0 1-2-2V12a2 2 0 0 1 2-2m.2 39.8h49.8a2.3 2.3 0 1 1 0 4.5H42.9a2.3 2.3 0 0 1 0-4.5m0 11.7h49.8a2.3 2.3 0 1 1 0 4.6H42.9a2.3 2.3 0 0 1 0-4.6m79 43.5a7 7 0 0 1-6.8 5.4H20.5a7 7 0 0 1-6.7-5.4l-.2-1.8V69.7h26.3c2.9 0 5.2 2.4 5.2 5.4s2.4 5.4 5.3 5.4h34.8c2.9 0 5.3-2.4 5.3-5.4s2.3-5.4 5.2-5.4H122v33.5q0 1-.2 1.8" })), /*#__PURE__*/React.createElement("path", { fill: "#dce0e6", d: "m149.1 33.3-6.8 2.6a1 1 0 0 1-1.3-1.2l2-6.2q-4.1-4.5-4.2-10.4c0-10 10.1-18.1 22.6-18.1S184 8.1 184 18.1s-10.1 18-22.6 18q-6.8 0-12.3-2.8" }), /*#__PURE__*/React.createElement("g", { fill: "#fff", transform: "translate(149.7 15.4)" }, /*#__PURE__*/React.createElement("circle", { cx: "20.7", cy: "3.2", r: "2.8" }), /*#__PURE__*/React.createElement("path", { d: "M5.7 5.6H0L2.9.7zM9.3.7h5v5h-5z" })))); }; if (process.env.NODE_ENV !== 'production') { Empty.displayName = 'EmptyImage'; } export default Empty;