import { useState } from "react"; import Image, { type ImageProps } from "next/image"; import { cn } from "~/lib/utils"; import { Skeleton } from "~/components/ui/skeleton"; interface ImageWithSkeletonProps extends ImageProps { containerClassName?: string; } export function ImageWithSkeleton({ className, containerClassName, alt, ...props }: ImageWithSkeletonProps) { const [isLoading, setIsLoading] = useState(true); return (