mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
8d96111184
* 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 }
|