"use client" import React from 'react' interface ScreenshotGalleryProps { screenshots: string[] symbol: string timeframes: string[] enlargedImage: string | null onImageClick: (src: string) => void onClose: () => void } export default function ScreenshotGallery({ screenshots, symbol, timeframes, enlargedImage, onImageClick, onClose }: ScreenshotGalleryProps) { if (screenshots.length === 0) return null return ( <> {/* Gallery Grid */}

📸 Chart Screenshots

{screenshots.length} captured • Click to enlarge
{screenshots.map((screenshot, index) => { const filename = screenshot.split('/').pop() || '' const timeframe = timeframes[index] || 'Unknown' return (
onImageClick(screenshot)} > {/* Preview Image */}
{`${symbol} { const target = e.target as HTMLImageElement target.style.display = 'none' target.nextElementSibling?.classList.remove('hidden') }} />
📊
Chart Preview
{filename}
{/* Overlay */}
🔍
{/* Image Info */}
{symbol}
{timeframe} Timeframe
Click to view
) })}
{/* Enlarged Image Modal */} {enlargedImage && (
{/* Close Button */} {/* Image */} Enlarged chart {/* Image Info Overlay */}
{symbol} Chart Analysis
AI analyzed screenshot • High resolution view
ESC to close
)} ) }