// src/components/lexical/PostImage.tsx import Image from 'next/image' const widthClass: Record = { inline: 'max-w-[24rem]', wide: 'max-w-[56rem]', full: '', } export function PostImage({ src, alt, caption, widthHint = 'full', }: { src: string alt: string caption?: string widthHint?: 'full' | 'wide' | 'inline' }) { return (
{alt} {caption &&
{caption}
}
) }