import{o as e,r as t,t as n}from"./button-DJ30HgDO.js";var r=e(t(),1);function i({isLoading:e,loadingText:t,error:i,onRetry:a}){return e?(0,r.jsx)(`div`,{className:`flex h-full justify-center items-center p-8`,children:(0,r.jsx)(`p`,{className:`text-lg font-medium animate-pulse text-text-primary dark:text-text-primary-dark`,children:t??`Loading...`})}):i?(0,r.jsxs)(`div`,{className:`flex flex-wrap h-full justify-center content-center items-center gap-4 text-status-danger dark:text-status-danger-dark p-8`,children:[(0,r.jsx)(`p`,{className:`text-xl font-medium`,children:`Error: ${i.message}`}),a&&(0,r.jsx)(n,{variant:`danger`,onClick:a,children:`Try Again`})]}):null}export{i as t};