({ index }: { index: number })
| 123 | }; |
| 124 | |
| 125 | function DocumentCardSkeleton({ index }: { index: number }) { |
| 126 | return ( |
| 127 | <Card> |
| 128 | <CardContent className="p-4"> |
| 129 | <div className="flex items-start gap-3" style={{ animationDelay: `${index * 75}ms` }}> |
| 130 | <Skeleton className="w-10 h-10 rounded-md shrink-0" /> |
| 131 | <div className="flex flex-col gap-1.5 flex-1"> |
| 132 | <Skeleton className="h-4 w-3/4" /> |
| 133 | <Skeleton className="h-3 w-full" /> |
| 134 | <Skeleton className="h-3 w-2/3" /> |
| 135 | <div className="flex gap-2 mt-1"> |
| 136 | <Skeleton className="h-4 w-20 rounded-full" /> |
| 137 | <Skeleton className="h-4 w-14 rounded-full" /> |
| 138 | <Skeleton className="h-3 w-16" /> |
| 139 | </div> |
| 140 | </div> |
| 141 | </div> |
| 142 | </CardContent> |
| 143 | </Card> |
| 144 | ); |
| 145 | } |
| 146 | |
| 147 | function getPageNumbers(currentPage: number, totalPages: number): (number | "ellipsis")[] { |
| 148 | if (totalPages <= 7) { |
nothing calls this directly
no outgoing calls
no test coverage detected