"use client" import { FormError } from "@/components/forms/error" import { Button } from "@/components/ui/button" import { Card } from "@/components/ui/card" import { Download, Loader2 } from "lucide-react" import Link from "next/link" import { useActionState } from "react" import { restoreBackupAction } from "./actions" export default function BackupSettingsPage() { const [restoreState, restoreBackup, restorePending] = useActionState(restoreBackupAction, null) return (
⚠️ This action will delete all existing data from your current database and remove all uploaded files. Be careful and make a backup first!
{restoreState?.error &&You can now continue using the app. Import stats: