(prompt)
| 520 | let lastRecipeDraft = null; |
| 521 | |
| 522 | const insertTipPrompt = (prompt) => { |
| 523 | const text = String(prompt || '').trim(); |
| 524 | if (!text || !inputEl) return; |
| 525 | inputEl.value = text; |
| 526 | inputEl.focus(); |
| 527 | inputEl.setSelectionRange(text.length, text.length); |
| 528 | showToast('Prompt inserted'); |
| 529 | }; |
| 530 | |
| 531 | const renderTips = () => { |
| 532 | if (!tipsBodyEl) return; |
no test coverage detected