import { PiTrashBold } from "react-icons/pi" import { TableCell, TableRow } from "@/components/ui/table" import { cn } from "@/lib/utils/cn" import { MdLockClock } from "react-icons/md" import { MediaInfo } from "@/types/general" import { truncate } from "./truncate" export function PendingVideoCard({ video, onDelete, className = "", }: { video: MediaInfo onDelete?: (video: MediaInfo) => void className?: string }) { const isBusy = video.status === "queued" || video.status === "generating" const hasError = video.status === "error" const isNotGeneratedYet = video.status === "submitted" || video.status === "queued" || video.status === "generating" const isGenerated = video.status === "published" return ( {truncate(video.id, 8)} {video.updatedAt || "N.A."} {truncate(video.description, 20)} {truncate(video.description, 45)} {video.status} { isBusy ? :
{ onDelete?.(video) }}>
}
) }