| 1 |
import { __rest } from "tslib"; |
| 2 |
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; |
| 3 |
import { css } from '@patternfly/react-styles'; |
| 4 |
import styles from '@patternfly/react-styles/css/components/EmptyState/empty-state.mjs'; |
| 5 |
import { EmptyStateIcon } from './EmptyStateIcon'; |
| 6 |
export var EmptyStateHeadingLevel; |
| 7 |
(function (EmptyStateHeadingLevel) { |
| 8 |
EmptyStateHeadingLevel["h1"] = "h1"; |
| 9 |
EmptyStateHeadingLevel["h2"] = "h2"; |
| 10 |
EmptyStateHeadingLevel["h3"] = "h3"; |
| 11 |
EmptyStateHeadingLevel["h4"] = "h4"; |
| 12 |
EmptyStateHeadingLevel["h5"] = "h5"; |
| 13 |
EmptyStateHeadingLevel["h6"] = "h6"; |
| 14 |
})(EmptyStateHeadingLevel || (EmptyStateHeadingLevel = {})); |
| 15 |
export const EmptyStateHeader = (_a) => { |
| 16 |
var { className, titleClassName, titleText, headingLevel: HeadingLevel = EmptyStateHeadingLevel.h1, icon: Icon } = _a, props = __rest(_a, ["className", "titleClassName", "titleText", "headingLevel", "icon"]); |
| 17 |
return (_jsxs("div", Object.assign({ className: css(`${styles.emptyState}__header`, className) }, props, { children: [Icon && _jsx(EmptyStateIcon, { icon: Icon }), titleText && (_jsx("div", { className: css(`${styles.emptyState}__title`), children: _jsx(HeadingLevel, { className: css(styles.emptyStateTitleText, titleClassName), children: titleText }) }))] }))); |
| 18 |
}; |
| 19 |
EmptyStateHeader.displayName = 'EmptyStateHeader'; |
| 20 |
//# sourceMappingURL=EmptyStateHeader.js.map |