import{jsx as a,jsxs as t}from"react/jsx-runtime";import{D as s,a as m,b as r,c as n,d as c}from"./dialog-BfGkTFdF.js";import{P as d}from"./progress-DBZY2s3y.js";import"@radix-ui/react-dialog";import"lucide-react";import"./utils-CMbmcP35.js";import"clsx";import"tailwind-merge";import"react";import"@radix-ui/react-progress";function P({open:i,onOpenChange:l,progress:e}){return a(s,{open:i,onOpenChange:l,children:t(m,{className:"sm:max-w-md",children:[t(r,{children:[a(n,{children:"Backup Progress"}),a(c,{children:e.message})]}),t("div",{className:"space-y-4 py-4",children:[a(d,{value:e.percentage,className:"h-3"}),t("div",{className:"flex items-center justify-between text-sm",children:[t("span",{className:"text-muted-foreground",children:[e.percentage,"%"]}),t("span",{className:"text-muted-foreground",children:[e.status==="completed"&&"✓ Completed",e.status==="failed"&&"✗ Failed",e.status==="running"&&"Processing..."]})]}),e.current_file&&t("div",{className:"text-sm text-muted-foreground",children:["Current: ",e.current_file]}),e.total_files>0&&t("div",{className:"text-sm text-muted-foreground",children:[e.processed_files," / ",e.total_files," items"]})]})]})})}export{P as BackupProgressDialog};
