mirror of
				https://github.com/blakeblackshear/frigate.git
				synced 2025-10-27 10:52:11 +01:00 
			
		
		
		
	* don't show chips and date when image is loading * add skeleton and change observer threshold * remove debug * use skeleton for live view too * old activity indicator looks better on live * fix gradients and lazy load with skeleton * fading effects
		
			
				
	
	
		
			16 lines
		
	
	
		
			261 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			261 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { cn } from "@/lib/utils"
 | |
| 
 | |
| function Skeleton({
 | |
|   className,
 | |
|   ...props
 | |
| }: React.HTMLAttributes<HTMLDivElement>) {
 | |
|   return (
 | |
|     <div
 | |
|       className={cn("animate-pulse rounded-md bg-muted", className)}
 | |
|       {...props}
 | |
|     />
 | |
|   )
 | |
| }
 | |
| 
 | |
| export { Skeleton }
 |