pages/search: render results

This commit is contained in:
He4eT 2024-01-20 21:36:46 +01:00
commit ae2259b2ba
3 changed files with 52 additions and 16 deletions

View file

@ -0,0 +1,7 @@
const tabView = (tab) =>
`<button class='tab'>${tab.displayName}</button>`
export const updateSearchResults = (state) => {
const container = document.getElementById('searchResults')
container.innerHTML = state.results.map(tabView).join('')
}