- MAPBOX
+
+ {leftLabel || 'MAPBOX'}
-
- GOOGLE SATELLITE
+
+ {rightLabel || 'GOOGLE SATELLITE'}
)
diff --git a/components/resolution-carousel.tsx b/components/resolution-carousel.tsx
index 1b28cbf7..2f9ec611 100644
--- a/components/resolution-carousel.tsx
+++ b/components/resolution-carousel.tsx
@@ -22,9 +22,19 @@ interface ResolutionCarouselProps {
mapboxImage?: string | null
googleImage?: string | null
initialImage?: string | null
+ mapboxImageLabel?: string
+ googleImageLabel?: string
+ analysisFocus?: string
}
-export function ResolutionCarousel({ mapboxImage, googleImage, initialImage }: ResolutionCarouselProps) {
+export function ResolutionCarousel({
+ mapboxImage,
+ googleImage,
+ initialImage,
+ mapboxImageLabel,
+ googleImageLabel,
+ analysisFocus
+}: ResolutionCarouselProps) {
const actions = useActions
() as any
const [, setMessages] = useUIState()
const [isAnalyzing, setIsAnalyzing] = React.useState(false)
@@ -75,12 +85,12 @@ export function ResolutionCarousel({ mapboxImage, googleImage, initialImage }: R
}
// Individual slides
- if (mapboxImage) slides.push({ type: 'image', src: mapboxImage, showAnalysis: false, label: 'MAPBOX' })
- if (googleImage) slides.push({ type: 'image', src: googleImage, showAnalysis: true, label: 'GOOGLE SATELLITE' })
+ if (mapboxImage) slides.push({ type: 'image', src: mapboxImage, showAnalysis: false, label: mapboxImageLabel || 'MAPBOX' })
+ if (googleImage) slides.push({ type: 'image', src: googleImage, showAnalysis: true, label: googleImageLabel || 'GOOGLE SATELLITE' })
// Fallback
if (slides.length === 0 && initialImage) {
- slides.push({ type: 'image', src: initialImage, showAnalysis: false, label: 'MAP CAPTURE' })
+ slides.push({ type: 'image', src: initialImage, showAnalysis: false, label: analysisFocus || 'MAP CAPTURE' })
}
if (slides.length === 0) return null
@@ -102,6 +112,9 @@ export function ResolutionCarousel({ mapboxImage, googleImage, initialImage }: R
{isAnalyzing ? 'ANALYZING...' : 'QCX-TERRA ANALYSIS'}
)}
+
+ {item.label}
+
)
}
@@ -115,7 +128,13 @@ export function ResolutionCarousel({ mapboxImage, googleImage, initialImage }: R