UNPKG

mod-arch-shared

Version:

Shared library for modular architecture micro-frontend projects

9 lines 1.15 kB
import * as React from 'react'; import { Button, Popover, PopoverPosition } from '@patternfly/react-core'; import { OutlinedQuestionCircleIcon } from '@patternfly/react-icons'; import PopoverListContent from '../components/PopoverListContent'; import { FindAdministratorOptions } from '../utilities/const'; const WhosMyAdministrator = ({ buttonLabel = "Who's my administrator?", headerContent, leadText, isInline, contentTestId, linkTestId, popoverPosition = PopoverPosition.bottom, }) => (React.createElement(Popover, { showClose: true, position: popoverPosition, headerContent: headerContent || 'Your administrator might be:', hasAutoWidth: true, maxWidth: "370px", bodyContent: React.createElement(PopoverListContent, { "data-testid": contentTestId, leadText: leadText, listHeading: headerContent ? 'Your administrator might be:' : undefined, listItems: FindAdministratorOptions }) }, React.createElement(Button, { isInline: isInline, variant: "link", icon: React.createElement(OutlinedQuestionCircleIcon, null), "data-testid": linkTestId }, buttonLabel))); export default WhosMyAdministrator; //# sourceMappingURL=WhosMyAdministrator.js.map