'use client'; import React, { useState } from 'react'; export default function InteractiveLapSection() { const [activeTab, setActiveTab] = useState<'lap7' | 'lap6' | 'delta'>('lap7'); return (
{/* Left Column: Sector Delta Details */}
SECTOR TELEMETRY BREAKDOWN

Analyze lap deltas with surgical telemetry.

Compare throttle traces, brake initiation thresholds, and roll angles between your best lap and reference benchmarks. Instantly see where you left tenths on the tarmac.

{/* Lap Tab Controls */}
{/* Sector Performance List */}
Sector 1: Turn 1-4 Complex Brake marker +8m deeper
-0.21s
Sector 2: Main Straightaway Top exit speed 162.4 MPH
-0.14s
Sector 3: The Carousel Consistent 52° lean sustained
-0.07s
{/* Right Column: Telemetry Graph & SVG Trace */}
Laguna Seca Circuit DRY • 24°C
DELTA: {activeTab === 'lap7' ? '-0.42s' : activeTab === 'lap6' ? '+0.12s' : '-0.533s'}
{/* Inline SVG Wave Graph */}
SPEED (MPH) & THROTTLE % BLUE: SPEED | GREEN: THROTTLE
{/* Horizontal grid lines */} {/* Speed Area and Line */} {/* Throttle Trace Line */} {/* Apex Marker */}
T1 (Andretti) T6 Corkscrew (Apex) T11
{/* Bottom Mini Readouts */}
PEAK DECEL -1.42 G
ROLL RATE 64°/s
DISTANCE 2.238 MI
); }