-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLesson.js
50 lines (50 loc) · 5.34 KB
/
Lesson.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
"use strict";
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
var __rest = (this && this.__rest) || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var react_1 = __importDefault(require("react"));
var Lesson = function (_a, ref) {
var _b = _a.size, size = _b === void 0 ? 'L' : _b, _c = _a.type, type = _c === void 0 ? 'solid' : _c, props = __rest(_a, ["size", "type"]);
if (size === 'L' && type === 'line') {
return (react_1.default.createElement("svg", __assign({ width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props, { ref: ref }),
react_1.default.createElement("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M4 6h8a4.99 4.99 0 014 2 4.992 4.992 0 014-2h8v20h-9a1 1 0 00-1 1h-4a1 1 0 00-1-1H4V6zm22 2h-6a3 3 0 00-3 3v13.764A2.989 2.989 0 0119 24h7V8zM12 8H6v16h7c.768 0 1.47.289 2 .764V11a3 3 0 00-3-3z", fill: "currentColor" })));
}
if (size === 'S' && type === 'line') {
return (react_1.default.createElement("svg", __assign({ width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props, { ref: ref }),
react_1.default.createElement("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M2 3h4c.818 0 1.544.393 2 1 .456-.607 1.182-1 2-1h4v10h-4a1 1 0 00-1 1H7a1 1 0 00-1-1H2V3zm6.5 9.677A1.995 1.995 0 0110 12h3V4h-3a1.5 1.5 0 00-1.5 1.5v7.177zM7.5 5.5v7.177A1.995 1.995 0 006 12H3V4h3a1.5 1.5 0 011.5 1.5z", fill: "currentColor" })));
}
if (size === 'L' && type === 'solid') {
return (react_1.default.createElement("svg", __assign({ width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props, { ref: ref }),
react_1.default.createElement("path", { d: "M4 6v20h9a1 1 0 011 1h4a1 1 0 011-1h9V6h-8a4.992 4.992 0 00-4 2 4.992 4.992 0 00-4-2H4z", fill: "currentColor" })));
}
if (size === 'S' && type === 'solid') {
return (react_1.default.createElement("svg", __assign({ width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props, { ref: ref }),
react_1.default.createElement("path", { d: "M2 3v10h4a1 1 0 011 1h2a1 1 0 011-1h4V3h-4c-.818 0-1.544.393-2 1a2.496 2.496 0 00-2-1H2z", fill: "currentColor" })));
}
throw new Error('invalid props');
};
exports.default = react_1.default.memo(react_1.default.forwardRef(Lesson));
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTGVzc29uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL0xlc3Nvbi50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQ00sZ0RBQTBCO0FBRTF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