import{jsx as a,jsxs as s}from"react/jsx-runtime";import{B as e}from"./button-BvFBRYHq.js";import{C as n}from"./content-card-D1vitqdC.js";import{L as u}from"./label-DMnntKPk.js";import{Loader2 as r,Database as p,Folder as h,Shield as f}from"lucide-react";import"@radix-ui/react-slot";import"class-variance-authority";import"./utils-CMbmcP35.js";import"clsx";import"tailwind-merge";import"react";import"./card-Zg0WOx-j.js";import"@radix-ui/react-label";function A({backingUp:t,onBackupMySQL:o,onBackupDirectory:l,onBackupAll:c,settings:i}){return a(n,{title:"Quick Backup Actions",children:s("div",{className:"space-y-3",children:[s(e,{onClick:o,disabled:t,className:"w-full justify-start",variant:"default",children:[t?a(r,{className:"h-4 w-4 mr-2 animate-spin"}):a(p,{className:"h-4 w-4 mr-2"}),"Backup MySQL Database"]}),s("div",{className:"space-y-2",children:[a(u,{className:"text-sm text-muted-foreground",children:"Backup Custom Directories"}),i.customPaths.length>0?i.customPaths.map((m,d)=>s(e,{onClick:()=>l(m),disabled:t,className:"w-full justify-start",variant:"outline",children:[t?a(r,{className:"h-4 w-4 mr-2 animate-spin"}):a(h,{className:"h-4 w-4 mr-2"}),m]},d)):a("p",{className:"text-sm text-muted-foreground",children:"No custom paths configured. Click Settings to add paths."})]}),s(e,{onClick:c,disabled:t,className:"w-full justify-start",variant:"secondary",children:[t?a(r,{className:"h-4 w-4 mr-2 animate-spin"}):a(f,{className:"h-4 w-4 mr-2"}),"Full Backup (MySQL + Directories)"]})]})})}export{A as BackupActions};
