"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/jsx-runtime.js"),r=require("./styles.js"),j=require("../Spinner/index.js"),n=require("./utils.js"),p=require("../../icons/AlertCircle.js"),d=require("../../icons/CheckCircle.js");const l=({file:s,uploaderTitle:x,maxSizeDescription:o,loading:u,successMessage:i,errorMessage:t})=>e.jsxRuntimeExports.jsxs(r.FileInfoContainer,{children:[e.jsxRuntimeExports.jsxs(r.FileInfo,{children:[u&&e.jsxRuntimeExports.jsx("div",{children:e.jsxRuntimeExports.jsx(j.Spinner,{variant:"secondary",size:"M"})}),e.jsxRuntimeExports.jsx(r.InfoSubheading,{title:s&&typeof s!="string"?s.name:"",children:n.getUploaderTitle({file:s,uploaderTitle:x})}),e.jsxRuntimeExports.jsx(r.SizeBody,{children:n.getUploaderDescription({file:s,maxSizeDescription:o})})]}),i&&!t&&e.jsxRuntimeExports.jsxs(r.MessageBody,{messageType:"success",children:[e.jsxRuntimeExports.jsx(d.default,{}),i]}),t&&!i&&e.jsxRuntimeExports.jsxs(r.MessageBody,{messageType:"error",children:[e.jsxRuntimeExports.jsx(p.default,{}),t]})]});exports.FileInfoWrapper=l;
