import { useQuery, useSuspenseQuery } from "@tanstack/react-query";
import {
getRepositoryOptions,
getSnapshotDetailsOptions,
listBackupSchedulesOptions,
} from "~/client/api-client/@tanstack/react-query.gen";
import { Button } from "~/client/components/ui/button";
import { Card, CardContent, CardHeader, CardTitle } from "~/client/components/ui/card";
import { SnapshotFileBrowser } from "~/client/modules/backups/components/snapshot-file-browser";
import { formatDateTime } from "~/client/lib/datetime";
import { useState } from "react";
import { Database } from "lucide-react";
import { Link, useParams } from "@tanstack/react-router";
// export const handle = {
// breadcrumb: (match: Route.MetaArgs) => [
// { label: "Repositories", href: "/repositories" },
// { label: match.loaderData?.repository.name || match.params.id, href: `/repositories/${match.params.id}` },
// { label: match.params.snapshotId },
// ],
// };
export const SnapshotError = () => {
const { repoId } = useParams({ from: "/(dashboard)/repositories/$repoId/$snapshotId" });
return (
Snapshot not found This snapshot does not exist in this repository It may have been deleted manually outside of Zerobyte.
Snapshot: {snapshotId}
Snapshot: {snapshotId}
{data.short_id}
{data.short_id}
{data.hostname}
{formatDateTime(data.time)}
{backupSchedule?.name}
{backupSchedule?.volume.name}
{path}
))} {data.paths.length > 20 && ( )}