"use strict";var e=require("prop-types"),r=require("classnames"),s=require("@material-ui/core/styles"),a=require("@material-ui/core/Typography"),i=require("@material-ui/icons/Warning"),t=require("react/jsx-runtime");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=l(e),u=l(r),n=l(a),c=l(i),d=function(e){return t.jsxs(n.default,{variant:"body1",className:u.default(e.className,e.classes.errorMessage),children:[t.jsx(c.default,{color:"error",className:e.classes.errorIcon}),t.jsxs("span",{children:["Upload failed. ",e.errorMessage]})]})};d.propTypes={errorMessage:o.default.string,className:o.default.string,classes:o.default.shape({}).isRequired},d.defaultProps={errorMessage:void 0,className:void 0};var p=s.withStyles({errorIcon:{marginRight:8},errorMessage:{display:"flex",alignItems:"center",fontSize:12,marginTop:8}})(d);module.exports=p;
