import React from 'react';
import { AlertTriangle, ZoomIn, Focus } from 'lucide-react';
import ScoreRing from '../ui/ScoreRing';
import MetricCard from '../ui/MetricCard';
import TestExplanation from '../ui/TestExplanation';
const API_BASE = import.meta.env.VITE_API_URL || 'http://127.0.0.1:8000';
const EyeTab = ({
result,
getSyncColor,
setZoomedImage,
}) => {
return (
<>
Biological Metric: Eye & Gaze Dynamics
Blink rate and gaze convergence consistency
{/* HERO VISUALS */}
{result.eye_analysis.eye_plot_path && (
setZoomedImage(`${API_BASE}/${result.eye_analysis.eye_plot_path}`)}>
Eye Aspect Ratio (EAR) Tracker
)}
{/* METRICS & SCORE */}
Eye tracking Metrics
50 ? 'warning' : 'neutral'}
/>
{result.eye_analysis.warnings && result.eye_analysis.warnings.length > 0 && (
Detection Warnings
{result.eye_analysis.warnings.map((w, i) => - {w}
)}
)}
>
);
};
export default React.memo(EyeTab);