"use client"; import { useState } from "react"; import Image from "next/image"; interface SessionCoverImageProps { src: string; alt: string; type?: "skill-exchange" | "side-hustle" | "cafe" | "bookstore" | "citywalk" | "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 (
{type === "bookstore" ? "📚" : type === "citywalk" ? "🚶" : type === "skill-exchange" ? "🔄" : "☕"}
); } return ( {alt} setError(true)} /> ); }