import { Button, Card } from '../ui' export function WordSuggestions(params: { showSuggestions: boolean suggestions: string[] selectedIndex: number onSuggestionClick: (suggestion: string) => void }): React.ReactElement | null { if (!params.showSuggestions || params.suggestions.length === 0) { return null } return ( {params.suggestions.map((suggestion, idx) => ( ))} ) }