import type { ListSnapshotsResponse } from "~/api-client/types.gen"; import { cn } from "~/lib/utils"; import { Card } from "~/components/ui/card"; import { ByteSize } from "~/components/bytes-size"; interface Props { snapshots: ListSnapshotsResponse; snapshotId: string; onSnapshotSelect: (snapshotId: string) => void; } export const SnapshotTimeline = (props: Props) => { const { snapshots, snapshotId, onSnapshotSelect } = props; if (snapshots.length === 0) { return (
No snapshots available