'use client'; import React from 'react'; import { AlertTriangle, TestTube, CheckCircle2 } from 'lucide-react'; import Button from '@/components/ui/Button'; interface EndRaceModalProps { raceId: string; raceName: string; onConfirm: () => void; onCancel: () => void; } export default function EndRaceModal({ raceId, raceName, onConfirm, onCancel }: EndRaceModalProps) { return (
{/* Header */}

Development Test Function

End Race & Process Results

{/* Content */}

Development Only Feature

This is a development/testing function to simulate ending a race and processing results. It will generate realistic race results, update driver ratings, and calculate final standings.

What This Does

  • • Marks the race as completed
  • • Generates realistic finishing positions
  • • Updates driver ratings based on performance
  • • Calculates championship points
  • • Updates league standings

Race: {raceName}

ID: {raceId}

{/* Actions */}
{/* Footer */}

This action cannot be undone. Use only for testing purposes.

); }