2026-02-05 21:31:35 +00:00
|
|
|
|
import { cn } from '@/lib/utils';
|
|
|
|
|
|
|
|
|
|
|
|
interface OptimizedImageSkeletonProps {
|
|
|
|
|
|
width?: number;
|
|
|
|
|
|
height?: number;
|
|
|
|
|
|
className?: string;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* Skeleton pour l’état Loading d’OptimizedImage.
|
|
|
|
|
|
* Utilise les layout primitives (pas de valeurs arbitraires).
|
|
|
|
|
|
*/
|
|
|
|
|
|
export function OptimizedImageSkeleton({
|
|
|
|
|
|
width,
|
|
|
|
|
|
height,
|
|
|
|
|
|
className,
|
|
|
|
|
|
}: OptimizedImageSkeletonProps) {
|
|
|
|
|
|
return (
|
|
|
|
|
|
<div
|
|
|
|
|
|
className={cn(
|
2026-02-07 13:05:38 +00:00
|
|
|
|
'bg-muted animate-pulse rounded-lg',
|
2026-02-05 21:31:35 +00:00
|
|
|
|
className,
|
|
|
|
|
|
)}
|
|
|
|
|
|
style={{ width, height }}
|
|
|
|
|
|
aria-hidden="true"
|
|
|
|
|
|
/>
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|