"use client" // The Backup tab: the backups of the host and the backup jobs of the VMs // and LXCs, each in its own view. import { useState } from "react" import { DatabaseBackup } from "lucide-react" import { HostBackup } from "./host-backup" import { VmBackupJobs } from "./vm-backup-jobs" import { PBSPanel } from "./pbs-panel" import { useT } from "../lib/i18n/provider" type BackupView = "host" | "guests" | "pbs" export function BackupTab() { const t = useT() const [view, setView] = useState("host") return (

{t("navigation.backup")}

{(["host", "guests", "pbs"] as const).map((key) => ( ))}
{/* The host view stays mounted: it follows a running backup or restore. */}
{view === "guests" && } {view === "pbs" && }
) }