UNPKG

@rcsb/rcsb-saguaro

Version:
14 lines (13 loc) 1.16 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RcsbFvRowMark = void 0; const tslib_1 = require("tslib"); const jsx_runtime_1 = require("react/jsx-runtime"); const react_1 = tslib_1.__importDefault(require("react")); const classes = tslib_1.__importStar(require("../../scss/RcsbFvRow.module.scss")); class RcsbFvRowMark extends react_1.default.Component { render() { return ((0, jsx_runtime_1.jsx)("div", { className: classes.rcsbFvRowMark, style: { display: "inline-block" }, children: (0, jsx_runtime_1.jsx)("div", { children: this.props.externalRowMark ? (0, jsx_runtime_1.jsx)(this.props.externalRowMark.component, Object.assign({ isGlowing: this.props.isGlowing, clickCallback: this.props.clickCallback, hoverCallback: this.props.hoverCallback }, this.props.externalRowMark.props)) : ((0, jsx_runtime_1.jsx)("div", { onClick: this.props.clickCallback, onMouseOver: this.props.hoverCallback, style: { width: 6, height: 6, marginBottom: 4, marginRight: 5 }, children: (0, jsx_runtime_1.jsx)("div", { className: classes.rcsbFvRowMarkComponent }) })) }) })); } } exports.RcsbFvRowMark = RcsbFvRowMark;