@jbrowse/core
Version:
JBrowse 2 core libraries used by plugins
13 lines (12 loc) • 700 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const jsx_runtime_1 = require("react/jsx-runtime");
const mobx_react_1 = require("mobx-react");
const configuration_1 = require("../configuration");
const Logo_1 = require("./Logo");
const Logo = (0, mobx_react_1.observer)(function ({ session, }) {
const { configuration } = session;
const logoPath = (0, configuration_1.readConfObject)(configuration, 'logoPath');
return (logoPath === null || logoPath === void 0 ? void 0 : logoPath.uri) ? ((0, jsx_runtime_1.jsx)("img", { src: logoPath.uri, alt: "Custom logo" })) : ((0, jsx_runtime_1.jsx)(Logo_1.LogoFull, { variant: "white" }));
});
exports.default = Logo;