@fonixtree/magic-design 2.0.209 → 2.0.210
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = WatermarkLabel;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
require("./index.less");
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @param {Object} props - The component props.
|
|
16
|
+
* @param {boolean} props.show - Whether the image is adult content.
|
|
17
|
+
*/
|
|
18
|
+
function WatermarkLabel(props) {
|
|
19
|
+
var show = props.show;
|
|
20
|
+
if (!show) return null;
|
|
21
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
22
|
+
className: "watermarkLabel"
|
|
23
|
+
}, "+21");
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = WatermarkLabel;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
require("./index.less");
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @param {Object} props - The component props.
|
|
16
|
+
* @param {boolean} props.show - Whether the image is adult content.
|
|
17
|
+
*/
|
|
18
|
+
function WatermarkLabel(props) {
|
|
19
|
+
var show = props.show;
|
|
20
|
+
if (!show) return null;
|
|
21
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
22
|
+
className: "watermarkLabel"
|
|
23
|
+
}, "+21");
|
|
24
|
+
}
|