import type { DifficultyRating } from '../types/vocabulary'; interface RatingButtonsProps { onRate: (rating: DifficultyRating) => void; disabled?: boolean; } export function RatingButtons({ onRate, disabled }: RatingButtonsProps) { const buttons = [ { rating: 'again' as DifficultyRating, label: '重来', sublabel: '< 1 min', color: 'from-rose-400 to-red-500', shadow: 'shadow-rose-200' }, { rating: 'hard' as DifficultyRating, label: '困难', sublabel: '~ 2 days', color: 'from-orange-400 to-amber-500', shadow: 'shadow-orange-200' }, { rating: 'good' as DifficultyRating, label: '良好', sublabel: '~ 4 days', color: 'from-blue-400 to-indigo-500', shadow: 'shadow-blue-200' }, { rating: 'easy' as DifficultyRating, label: '简单', sublabel: '~ 7 days', color: 'from-emerald-400 to-teal-500', shadow: 'shadow-emerald-200' }, ]; return (