// Greek/Hebrew word study for the chunk: compact cards (one open for editing at a // time), Strong's lookup, and suggestions from the passage. import { useState } from 'react'; import DOMPurify from 'dompurify'; import { externalLookupLinks, speakOriginalWord } from '../../utils/wordStudy.js'; const inputCls = 'mt-1 block w-full rounded-lg border border-[var(--r-line)] bg-[var(--r-bg)] px-2.5 py-1.5 text-sm text-[var(--r-text)] focus:outline-none focus:ring-2 focus:ring-[var(--r-line)]'; const btn = 'rounded-lg border border-[var(--r-line)] px-2.5 py-1.5 text-xs hover:bg-black/5 disabled:opacity-50'; function WordCard({ word, open, onToggle, chunkId, wordStudy }) { const { updateChunkWord, lookupWord, removeGreekWord } = wordStudy; const set = (patch) => updateChunkWord(chunkId, word.id, patch); const field = (label, key, placeholder) => ( ); const notFound = (word.shortDefinition === 'No definition found.' || word.shortDefinition === 'Lookup failed.') && !word.lexeme && !word.definitionHtml && word.query.trim(); return (
Not found in BDBT — look it up manually:
No words yet. Open a verse’s original words in the text and click one, or add a word to look it up.
)} {chunk.greekWords.map((w) => (