'use client' import { useState } from 'react' import { cn } from '@sim/emcn' import NextImage from 'next/image' import { Lightbox } from '@/app/(landing)/components/lightbox' interface ContentImageProps { src: string alt?: string width?: number height?: number className?: string } /** * Click-to-zoom image renderer used by MDX content (blog and library posts * both compile through the same `mdxComponents` map in `@/lib/content/mdx`). */ export function ContentImage({ src, alt = '', width = 800, height = 450, className, }: ContentImageProps) { const [isLightboxOpen, setIsLightboxOpen] = useState(false) return ( <> setIsLightboxOpen(true)} /> setIsLightboxOpen(false)} src={src} alt={alt} /> ) }