import { useState } from 'react' import CameraPanel from './CameraPanel' import LightingPanel from './LightingPanel' import ColorPanel from './ColorPanel' import LightingDiagram from './LightingDiagram' function AnalysisResults({ result, imagePreview }) { const [activeTab, setActiveTab] = useState('overview') const tabs = [ { id: 'overview', label: 'Overview' }, { id: 'lighting', label: 'Lighting Diagram' }, { id: 'color', label: 'Color Analysis' }, ] return (
Analyzed

Quick Summary

{result.summary || 'Professional shot with controlled lighting and cinematic color grade.'}

{tabs.map((tab) => ( ))}
{activeTab === 'overview' && (
)} {activeTab === 'lighting' && ( )} {activeTab === 'color' && (
{result.color?.palette && (

Color Palette

{result.color.palette.map((color, index) => (
{color}
))}
)}
)}

Recreation Guide AI Generated

{result.recreationGuide?.map((step, index) => (
{index + 1}

{step}

)) || ( <>
1

Use a {result.camera?.focalLength || '50-85mm'} lens at {result.camera?.aperture || 'f/2.0-2.8'} for similar depth of field

2

Position your key light at {result.lighting?.keyLightAngle || '45°'} from camera {result.lighting?.keyLightSide || 'right'}

3

Apply a {result.color?.temperature || 'warm'} color grade with {result.color?.contrast || 'medium'} contrast

)}
) } export default AnalysisResults