UNPKG

mod-arch-shared

Version:

Shared UI components and utilities for modular architecture micro-frontend projects

12 lines 1.28 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'; 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: [ 'The person who gave you your username, or who helped you to log in for the first time', 'Someone in your IT department or help desk', 'A project manager or developer', ] }) }, React.createElement(Button, { isInline: isInline, variant: "link", icon: React.createElement(OutlinedQuestionCircleIcon, null), "data-testid": linkTestId }, buttonLabel))); export default WhosMyAdministrator; //# sourceMappingURL=WhosMyAdministrator.js.map