mod-arch-shared
Version:
Shared UI components and utilities for modular architecture micro-frontend projects
11 lines • 750 B
JavaScript
import * as React from 'react';
import { EmptyState, EmptyStateBody, Stack, StackItem, EmptyStateFooter, } from '@patternfly/react-core';
import { PathMissingIcon } from '@patternfly/react-icons';
const EmptyStateErrorMessage = ({ title, bodyText, children, }) => (React.createElement(EmptyState, { headingLevel: "h2", icon: PathMissingIcon, titleText: title },
React.createElement(EmptyStateFooter, null,
React.createElement(Stack, { hasGutter: true },
React.createElement(StackItem, null,
React.createElement(EmptyStateBody, null, bodyText)),
children && React.createElement(StackItem, null, children)))));
export default EmptyStateErrorMessage;
//# sourceMappingURL=EmptyStateErrorMessage.js.map