UNPKG

@mikezimm/fps-library-v2

Version:

Library of reusable typescript/javascript functions, interfaces and constants

38 lines (37 loc) 2.54 kB
/** * CodeAnalizerComment: Updated 1 imports on 2024-09-21 23:07:24 * Update:: import { ISourceProps } to '@mikezimm/fps-core-v7/lib/components/molecules/source-props/ISourceProps;' */ import * as React from 'react'; // import { Icon, } from '@fluentui/react/lib/Icon'; import Accordion from '../../Accordion/Accordion'; require('@mikezimm/fps-styles/dist/fpsGeneralCSS.css'); // for gotoLink // import stylesP from '../../SourcePages/SourcePages.module.scss'; // import stylesA from '../../AlvFinMan.module.scss'; // import { openThisLinkInNewTab } from '../../../atoms/Links/CreateLinks'; import { getGoToLinks } from '../../../atoms/Links/getGoToLinks'; // import { openThisLinkInNewTab } from '../../../fpsReferences'; export function LimitedVersionPage(showThisItem, primarySource) { /** * Limited Content Warning content accordion */ // const LimitedTitle: JSX.Element = <h2 style={{ fontSize: 'larger', marginTop: '20px', textDecoration: 'underline' }}>This is a Limited version of this page:</h2>; const ClickHereToOpenContent = React.createElement("div", { style: { padding: '20px 20px 30px', backgroundColor: 'lightgray' } }, React.createElement("div", null, React.createElement("h3", { style: { marginBlockStart: '0px' } }, "What you will see here:"), React.createElement("ul", null, React.createElement("li", null, "Formatted text and Links"), React.createElement("li", null, "Images shown as banner - may not see full image.")), React.createElement("h3", { style: { marginBlockStart: '0px' } }, "To get full page functionality listed below - click on the link below."), React.createElement("ul", null, React.createElement("li", null, "Image formatting like sizing,"), React.createElement("li", null, "All other parts such as Tiles, PageInfo, Youtube, Images and Galleries etc..."))), getGoToLinks({ item: showThisItem, primarySource: primarySource, altText: `Click here to open full page ( in a new tab )` })); const LimitedVersionAccordion = React.createElement(Accordion // title={ LimitedTitle } , { // title={ LimitedTitle } title: `NOTE: This is a Limited version of this page:`, showAccordion: false, animation: 'TopDown', contentStylesVis: { height: '270px' }, content: ClickHereToOpenContent, defaultIcon: 'Info' }); return LimitedVersionAccordion; } //# sourceMappingURL=LimitedVersion.js.map