"use client" 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 (

Download backup

You can use any SQLite client to view the database.sqlite file contents

Restore database from backup

Warning: This will overwrite your current database and destroy all the data! Don't forget to download backup first.
{restoreState?.error &&

{restoreState.error}

}
) }