@rcsb/rcsb-saguaro-3d
Version:
RCSB Molstar/Saguaro Web App
18 lines (17 loc) • 1.34 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.HelpLinkComponent = void 0;
const tslib_1 = require("tslib");
const jsx_runtime_1 = require("react/jsx-runtime");
const React = tslib_1.__importStar(require("react"));
const RcsbFvConstants_1 = require("../../../../RcsbFvConstants/RcsbFvConstants");
class HelpLinkComponent extends React.Component {
render() {
return ((0, jsx_runtime_1.jsxs)("div", { style: { marginTop: 10 }, children: [(0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)("div", { id: RcsbFvConstants_1.RcsbFvDOMConstants.SELECT_BUTTON_PFV_ID, style: { display: "inline-block" } }) }), (0, jsx_runtime_1.jsxs)("div", { style: { position: "absolute", top: 5, right: 5 }, children: [(0, jsx_runtime_1.jsx)("a", { style: { textDecoration: "none", color: "#337ab7", cursor: "pointer", marginRight: 15 }, target: "_blank", href: this.props.helpHref, children: "Help" }), (0, jsx_runtime_1.jsx)("a", { style: { textDecoration: "none", color: "#337ab7", cursor: "pointer" }, onClick: () => {
this.props.unmount(true, () => {
window.history.back();
});
}, children: "Back" })] })] }));
}
}
exports.HelpLinkComponent = HelpLinkComponent;