(props: { label: string })
| 60 | } |
| 61 | |
| 62 | export function DiffPanelLoadingState(props: { label: string }) { |
| 63 | return ( |
| 64 | <div className="flex min-h-0 flex-1 flex-col p-2"> |
| 65 | <div |
| 66 | className="flex min-h-0 flex-1 flex-col overflow-hidden rounded-md border border-border/60 bg-card/25" |
| 67 | role="status" |
| 68 | aria-live="polite" |
| 69 | aria-label={props.label} |
| 70 | > |
| 71 | <div className="flex items-center gap-2 border-b border-border/50 px-3 py-2"> |
| 72 | <Skeleton className="h-4 w-32 rounded-full" /> |
| 73 | <Skeleton className="ml-auto h-4 w-20 rounded-full" /> |
| 74 | </div> |
| 75 | <div className="flex min-h-0 flex-1 flex-col gap-4 px-3 py-4"> |
| 76 | <div className="space-y-2"> |
| 77 | <Skeleton className="h-3 w-full rounded-full" /> |
| 78 | <Skeleton className="h-3 w-full rounded-full" /> |
| 79 | <Skeleton className="h-3 w-10/12 rounded-full" /> |
| 80 | <Skeleton className="h-3 w-11/12 rounded-full" /> |
| 81 | <Skeleton className="h-3 w-9/12 rounded-full" /> |
| 82 | </div> |
| 83 | <span className="sr-only">{props.label}</span> |
| 84 | </div> |
| 85 | </div> |
| 86 | </div> |
| 87 | ); |
| 88 | } |
nothing calls this directly
no outgoing calls
no test coverage detected