"use client"; import { Badge, Progress } from "@/components/shadcn"; import type { ScanProps } from "@/types"; export function ProgressCell({ scan }: { scan: ScanProps }) { const progress = scan.attributes.progress ?? 0; const isQueued = scan.attributes.state === "available"; if (isQueued) { return Queued for scan; } return (
{progress}%
); }