import { cn } from '@/lib/utils' interface FlashCardProps { word: string phonetic: string meaningVi: string example: string topicBadge: string isFlipped: boolean onFlip: () => void } /** 3D flip flashcard. Front shows word/phonetic; back shows Vietnamese meaning + example. */ export function FlashCard({ word, phonetic, meaningVi, example, topicBadge, isFlipped, onFlip }: FlashCardProps) { const highlightedExample = example.replace( new RegExp(`\\b${word}\\b`, 'gi'), (match) => `${match}`, ) return (
touch_app Nhấn để xem nghĩa