"use client"; import { useState } from "react"; import Image from "next/image"; interface SessionCoverImageProps { src: string; alt: string; type?: "skill-exchange" | "side-hustle" | "loft" | "light-chat"; className?: string; fill?: boolean; sizes?: string; } export default function SessionCoverImage({ src, alt, type, className = "", fill, sizes }: SessionCoverImageProps) { const [error, setError] = useState(false); if (error) { return (