| 1 | import { Skeleton } from "@/components/ui/skeleton"; |
| 2 | |
| 3 | /** Bordered files of code lines, the shape of a file view or a diff while it loads. */ |
| 4 | export function CodeSkeleton({ |
| 5 | return ( |
| 6 | <div className="flex flex-col gap-4 |
| 7 | {Array.from({ |
| 8 | <div key={file |
| 9 | <div className="flex items-center gap-2 border-b bg-muted/40 px-4 py-2.5 |
| 10 | <Skeleton className=" |
| 11 | <Skeleton className=" |
| 12 | </div> |
| 13 | <div className="flex flex-col gap-2 p-4 |
| 14 | {Array.from({ |
| 15 | <Skeleton |
| 16 | key={line} |
| 17 | className="h-3.5" |
| 18 | style={{ width: |
| 19 | /> |
| 20 | ))} |
| 21 | </div> |
| 22 | </div> |
| 23 | ))} |
| 24 | </div> |
| 25 | ); |
| 26 | } |