import { useMemo } from "react"; const ACCENT_CHARS: Record = { DELE: ["á", "é", "í", "ó", "ú", "ñ", "¿", "¡"], GOETHE: ["ä", "ö", "ü", "ß"], TOAFL: ["ا", "ب", "ت", "ث", "ج", "ح", "خ", "د", "ذ", "ر", "ز", "س", "ش", "ص", "ض", "ط", "ظ", "ع", "غ", "ف", "ق", "ك", "ل", "م", "ن", "ه", "و", "ي"], }; interface AccentKeyboardProps { examType?: string; onInsert: (char: string) => void; disabled?: boolean; } export function AccentKeyboard({ examType, onInsert, disabled }: AccentKeyboardProps) { if (!examType) return null; const chars: string[] | undefined = ACCENT_CHARS[examType]; if (!chars || chars.length === 0) return null; return (
Special Characters {chars.map((char: string) => ( ))}
); }