import { CalendarClock, Database, HardDrive } from "lucide-react";
import { Link } from "@tanstack/react-router";
import { TimeAgo } from "~/client/components/time-ago";
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "~/client/components/ui/card";
import { useTimeFormat } from "~/client/lib/datetime";
import type { BackupSchedule } from "~/client/lib/types";
import { BackupStatusDot } from "./backup-status-dot";
export const BackupCard = ({ schedule }: { schedule: BackupSchedule }) => {
const { formatShortDateTime } = useTimeFormat();
return (
{schedule.volume.name}
→
{schedule.repository.name}
Schedule
{schedule.cronExpression || "Manual only"}
Next backup
{formatShortDateTime(schedule.nextBackupAt)}
);
};