import e from"@babel/runtime/helpers/defineProperty";import r from"prop-types";import s from"@material-ui/icons/InfoOutlined";import t from"./AppInfoMessage.css.js";import n from"../../../AppHeader/AppHeader.js";import{jsxs as o,jsx as p,Fragment as a}from"react/jsx-runtime";function i(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 c(r){for(var s=1;s<arguments.length;s++){var t=null!=arguments[s]?arguments[s]:{};s%2?i(Object(t),!0).forEach((function(s){e(r,s,t[s])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(t,e))}))}return r}var m="AppInfoMessage";function l(e){var r=e.appHeaderProps,i=e.children,m=e.message,l=e.submessage;return o("div",{className:t.appInfoMessage,"data-testid":"AppInfoMessage",children:[p(n,c({},r)),o("div",{className:t.content,children:[i,!i&&o(a,{children:[p(s,{size:"large",className:t.infoIcon}),p("p",{className:t.message,children:m}),l&&p("p",{className:t.submessage,children:l})]})]})]})}l.propTypes={appHeaderProps:r.shape({}).isRequired,children:r.node,message:r.oneOfType([r.node,r.string]),submessage:r.string},l.defaultProps={message:"",submessage:"",children:null};export{m as PAGE_NAME,l as default};
