import { ChevronRightIcon } from "lucide-react" import type { Screenshots as Shots } from "@workspace/types" import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@workspace/ui/components/collapsible" export function Screenshots({ shots }: { shots: Shots }) { if (shots.status === "running") { return (
Taking before and after screenshots of {shots.pages.length} page{shots.pages.length === 1 ? "" : "s"}
) } if (shots.status === "failed") { return ({shots.log}