Files
discord-decomp/_bundle/Line.jsx
T
2026-11-01 12:12:55 +02:00

45 lines
1.4 KiB
React

// Metro module 8604 (f8605).
import _classCallCheck from "./_classCallCheck";
import _createClass from "./_createClass";
import _possibleConstructorReturn from "./_possibleConstructorReturn";
import _getPrototypeOf from "./_getPrototypeOf";
import _inherits from "./_inherits";
import { extract } from "./extractProps";
import Module8605 from "./Module8605";
import SVGMatrix from "./SVGMatrix";
let Line;
let env5570 = {};
env5570[7] = function _isNativeReflectConstruct() {
let c16666_0;
try {
c16666_0 = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
} catch ($e) {}
const _isNativeReflectConstruct2 = function _isNativeReflectConstruct() {
return !!c16666_0;
};
env5570[7] = _isNativeReflectConstruct2;
return _isNativeReflectConstruct2();
};
Line = function Line() {
_classCallCheck(this, Line);
const r8 = _getPrototypeOf(Line);
return _possibleConstructorReturn(this, (0, env5570[7])() ? Reflect.construct(r8, arguments, _getPrototypeOf(this).constructor) : r8.apply(this, arguments));
};
_inherits(Line, SVGMatrix);
const r37 = _createClass(Line, [{
key: "render",
value: function render() {
const props = this.props;
const { x1, y1, x2, y2 } = props;
return <Module8605 ref={(a0) => this.refMethod(a0)} {...extract(this, props)} x1={x1} y1={y1} x2={x2} y2={y2} />;
}
}]);
r37.displayName = "Line";
r37.defaultProps = {
x1: 0,
y1: 0,
x2: 0,
y2: 0
};
export default r37;