"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),r=require("prop-types"),s=require("@material-ui/icons/InfoOutlined"),t=require("./AppInfoMessage.css.js"),a=require("../../../AppHeader/AppHeader.js"),n=require("react/jsx-runtime");function p(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=p(e),o=p(r),u=p(s);function c(e,r){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),s.push.apply(s,t)}return s}function l(e){for(var r=1;r<arguments.length;r++){var s=null!=arguments[r]?arguments[r]:{};r%2?c(Object(s),!0).forEach((function(r){i.default(e,r,s[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):c(Object(s)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(s,r))}))}return e}function d(e){var r=e.appHeaderProps,s=e.children,p=e.message,i=e.submessage;return n.jsxs("div",{className:t.appInfoMessage,"data-testid":"AppInfoMessage",children:[n.jsx(a.default,l({},r)),n.jsxs("div",{className:t.content,children:[s,!s&&n.jsxs(n.Fragment,{children:[n.jsx(u.default,{size:"large",className:t.infoIcon}),n.jsx("p",{className:t.message,children:p}),i&&n.jsx("p",{className:t.submessage,children:i})]})]})]})}d.propTypes={appHeaderProps:o.default.shape({}).isRequired,children:o.default.node,message:o.default.oneOfType([o.default.node,o.default.string]),submessage:o.default.string},d.defaultProps={message:"",submessage:"",children:null},exports.PAGE_NAME="AppInfoMessage",exports.default=d;
