import type { Study } from '../types'; import { Badge } from './Badge'; interface StudyCardProps { study: Study; isActive: boolean; onClick: () => void; } export function StudyCard({ study, isActive, onClick }: StudyCardProps) { const percentage = study.progress.total > 0 ? (study.progress.current / study.progress.total) * 100 : 0; const statusVariant = study.status === 'completed' ? 'success' : study.status === 'running' ? 'info' : 'warning'; return (

{study.name}

{study.status}
{study.progress.current} / {study.progress.total} trials {study.best_value !== null && ( • Best: {study.best_value.toFixed(4)} )}
); }