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 (