import{j as o}from"./iframe-p4aYZyoq.js";import{c as t}from"./index-Dx18ixSn.js";import{S as i}from"./protein-Bf0QnNTs.js";const c=({progress:e,className:a,...s})=>{let r;return(e||e===0)&&((e<0||e>1)&&console.warn(`Loader's "progress" prop needs to be within [0, 1], it is now "${e}"`),r=e),o.jsxs("div",{className:t("loader-container",a),...s,children:[o.jsx(i,{className:"loader",width:"100",height:"100"}),r&&o.jsx("span",{className:"loader-container__progress",children:o.jsxs("progress",{title:`Progress: ${Math.floor(r*100)}%`,value:r,children:[Math.floor(r*100),"%"]})})]})};try{loader.displayName="loader",loader.__docgenInfo={description:"",displayName:"loader",props:{progress:{defaultValue:null,description:"",name:"progress",required:!1,type:{name:"number"}}}}}catch{}export{c as L};
