(query: string, entries: T[])
| 191 | } |
| 192 | |
| 193 | function match<T extends PanelEntry>(query: string, entries: T[]) { |
| 194 | const text = query.trim() |
| 195 | if (!text) { |
| 196 | return entries |
| 197 | } |
| 198 | |
| 199 | return fuzzysort |
| 200 | .go(text, entries, { keys: ["display", "category", "description", "keywords"] }) |
| 201 | .map((item) => item.obj) |
| 202 | } |
| 203 | |
| 204 | function PanelShell(props: { |
| 205 | title: string |
no outgoing calls
no test coverage detected