EmptyMessageState.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * Copyright 2018 Red Hat, Inc. and/or its affiliates.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. import * as React from "../../../common/keycloak/web_modules/react.js";
  17. import { EmptyState, EmptyStateVariant, Title, EmptyStateIcon, TitleLevel, EmptyStateBody } from "../../../common/keycloak/web_modules/@patternfly/react-core.js";
  18. import { Msg } from "./Msg.js";
  19. export default class EmptyMessageState extends React.Component {
  20. constructor(props) {
  21. super(props);
  22. }
  23. render() {
  24. return React.createElement(EmptyState, {
  25. variant: EmptyStateVariant.full
  26. }, React.createElement(EmptyStateIcon, {
  27. icon: this.props.icon
  28. }), React.createElement(Title, {
  29. headingLevel: TitleLevel.h5,
  30. size: "lg"
  31. }, React.createElement(Msg, {
  32. msgKey: this.props.messageKey
  33. })), React.createElement(EmptyStateBody, null, this.props.children));
  34. }
  35. }
  36. //# sourceMappingURL=EmptyMessageState.js.map