type GuideScreenshotSize = 'wide' | 'narrow'; interface GuideScreenshotProps { src: string; alt: string; caption?: string; mobile?: boolean; size?: GuideScreenshotSize; } const SIZE_CLASS: Record = { wide: 'max-w-4xl', narrow: 'max-w-lg', }; export const GuideScreenshot = ({ src, alt, caption, mobile, size = 'wide' }: GuideScreenshotProps) => { const widthClass = mobile ? 'max-w-[375px]' : SIZE_CLASS[size]; return (
{alt}
{caption && (
{caption}
)}
); };