UNPKG

@mikezimm/fps-library-v2

Version:

Library of reusable typescript/javascript functions, interfaces and constants

18 lines (17 loc) 792 B
/** * CodeAnalizerComment: Updated 2 imports on 2024-09-22 14:49:52 * Update:: import { IWebpartBannerProps } to '@mikezimm/fps-core-v7/lib/banner/mainReact/IWebpartBannerProps;' * Update:: import { checkCert } to '@mikezimm/fps-core-v7/lib/banner/bannerX/checkCert;' */ import * as React from 'react'; import { getCertElement } from './getCertElement'; import { checkCert } from '@mikezimm/fps-core-v7/lib/banner/bannerX/checkCert'; export function getMsg(bannerProps) { let ele = undefined; // eslint-disable-next-line @typescript-eslint/no-explicit-any if (checkCert(bannerProps) === false) { ele = React.createElement("div", { style: {} }, getCertElement(bannerProps, 'Page', 'normal')); } return ele; } //# sourceMappingURL=getMsg.js.map