@mikezimm/fps-library-v2
Version:
Library of reusable typescript/javascript functions, interfaces and constants
33 lines (31 loc) • 1.79 kB
JavaScript
/**
* CodeAnalizerComment: Updated 1 imports on 2024-09-22 14:49:52
* Update:: import { IWebpartBannerProps } to '@mikezimm/fps-core-v7/lib/banner/mainReact/IWebpartBannerProps;'
*/
/**
* CodeAnalizerComment: Updated 1 imports on 2024-09-21 23:07:24
* Update:: import { check4This } to '@mikezimm/fps-core-v7/lib/logic/Links/CheckSearch;'
*/
import * as React from 'react';
import { createPerformanceTableVisitor } from '../../components/molecules/Performance/tables';
import { check4This, Check4 } from '@mikezimm/fps-core-v7/lib/logic/Links/CheckSearch';
import { getWebPartVersionElement } from './VersionElement';
export function getMinPanel(bannerProps) {
const bonusHTML1 = bannerProps.bonusHTML1 ? bannerProps.bonusHTML1 : null;
const panelPerformance = bannerProps.panelPerformance ? createPerformanceTableVisitor(bannerProps.panelPerformance, []) : null;
if (check4This(Check4.tracePerformance_Eq_true) === true)
console.log(`tracePerformance getMinPanel ~ 12`, JSON.parse(JSON.stringify(bannerProps.panelPerformance)));
const bonusHTML2 = bannerProps.bonusHTML2 ? bannerProps.bonusHTML2 : null;
// const certEle = getCertElement( bannerProps, 'Page', 'normal' );
const panelContent = React.createElement("div", null,
getWebPartVersionElement(bannerProps),
bannerProps.replacePanelHTML,
bonusHTML1 ? React.createElement("div", null, bonusHTML1) : null,
React.createElement("div", null,
bannerProps.versionInfo,
" - getMinPanel"),
panelPerformance ? React.createElement("div", null, panelPerformance) : null,
bonusHTML2 ? React.createElement("div", null, bonusHTML2) : null);
return panelContent;
}
//# sourceMappingURL=MinPanel.js.map