'use client' import { DynamicTimeNoSSR } from '@/components/DynamicTimeNoSSR'; import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; import { Label } from '@/components/ui/label'; import { Switch } from '@/components/ui/switch'; import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, } from "@/components/ui/tooltip"; import { settingsAtom } from '@/lib/atoms'; import { Settings, WeekDay } from '@/lib/types'; import { useAtom } from 'jotai'; import { Info } from 'lucide-react'; // Import Info icon import { saveSettings } from '../actions/data'; export default function SettingsPage() { const [settings, setSettings] = useAtom(settingsAtom); const updateSettings = async (newSettings: Settings) => { await saveSettings(newSettings) setSettings(newSettings) } if (!settings) return null return ( <>
When enabled, the application data (habits, coins, settings, etc.) will be automatically backed up daily around 2 AM server time. Backups are stored as ZIP files in the `backups/` directory at the project root. Only the last 7 backups are kept; older ones are automatically deleted.