* Render cookbooks and recipes
()
| 251 | * Render cookbooks and recipes |
| 252 | */ |
| 253 | function renderCookbooks(): void { |
| 254 | const container = document.getElementById("samples-list"); |
| 255 | if (!container || !samplesData) return; |
| 256 | |
| 257 | container.innerHTML = renderCookbookSectionsHtml(getFilteredRecipes(), { |
| 258 | selectedLanguage, |
| 259 | }); |
| 260 | |
| 261 | // Setup event listeners |
| 262 | setupRecipeListeners(); |
| 263 | } |
| 264 | |
| 265 | /** |
| 266 | * Setup event listeners for recipe interactions |
no test coverage detected