MCPcopy Index your code
hub / github.com/github/awesome-copilot / showEmptyState

Function showEmptyState

website/src/scripts/pages/samples.ts:79–93  ·  view source on GitHub ↗

* Show empty state when no cookbooks are available

()

Source from the content-addressed store, hash-verified

77 * Show empty state when no cookbooks are available
78 */
79function showEmptyState(): void {
80 const container = document.getElementById("samples-list");
81 if (container) {
82 container.innerHTML = `
83 <div class="empty-state">
84 <h3>No Samples Available</h3>
85 <p>Check back soon for code samples and recipes.</p>
86 </div>
87 `;
88 }
89
90 // Hide filters
91 const filtersBar = document.getElementById("filters-bar");
92 if (filtersBar) filtersBar.style.display = "none";
93}
94
95/**
96 * Setup language and tag filters

Callers 1

initSamplesPageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected