UNPKG

@mikezimm/fps-library-v2

Version:

Library of reusable typescript/javascript functions, interfaces and constants

23 lines (21 loc) 1.97 kB
/** * CodeAnalizerComment: Updated 2 imports on 2024-09-22 14:49:52 * Update:: import { PanelType } to '@mikezimm/fps-core-v7/lib/types/@fluentUI/@7.199.1/Panel;' * Update:: import { IAnySourceItem } to '@mikezimm/fps-core-v7/lib/components/molecules/AnyContent/IAnyContent;' */ /** * CodeAnalizerComment: Updated 1 imports on 2024-09-21 23:07:24 * Update:: import { IAnySourceItem } to '@mikezimm/fps-core-v7/lib/components/molecules/AnyContent/IAnyContent;' */ import * as React from 'react'; import { Panel, PanelType } from '@fluentui/react/lib/Panel'; import ItemPane from '../ItemPane/component'; export function CustomPanel(props) { const panelContent = React.createElement(ItemPane, { item: props.item, showCanvasContent1: false, source: props.source, primarySource: props.primarySource, refreshId: props.refreshId, debugMode: props.debugMode, search: props.search, searchText: props.searchText, showJSONDetail: props.showJSONDetail, showHeading: props.showHeading, showItemLink: props.showItemLink, showPermsLink: props.showPermsLink, showListLink: props.showListLink, showDateStamps: props.showDateStamps, showProperties: props.showProperties, showEmbed: props.showEmbed, customElement1: props.customElement1, customElement1B: props.customElement1B, customElement1C: props.customElement1C, customElement2: props.customElement2, customElement2B: props.customElement2B, customElement3: props.customElement3, imageStyle: '', topButtons: [], canvasOptions: null }); const thePanel = React.createElement("div", null, React.createElement(Panel, { isOpen: props.showItemPanel === true ? true : false, // this prop makes the panel non-modal isBlocking: true, onDismiss: props.onClosePanel, closeButtonAriaLabel: "Close", type: props.reactPanelType ? props.reactPanelType : PanelType.large, isLightDismiss: true }, panelContent)); return thePanel; } //# sourceMappingURL=CustomPanel.js.map