"use client"; import { useState } from "react"; import { Skeleton } from "../ui/skeleton"; interface ImageCellProps { jacketPath: string | undefined; } const ImageCell: React.FC = ({ jacketPath }) => { const [isLoading, setIsLoading] = useState(true); const handleImageLoad = () => { setIsLoading(false); }; const handleImageError = () => { setIsLoading(false); }; const formattedJacketPath = jacketPath?.replace(".dds", ".png"); return (
{formattedJacketPath ? ( Jacket ) : ( )}
); }; export default ImageCell;