(input: string)
| 16 | const displayCommands = commands.filter((c) => !c.hidden); |
| 17 | |
| 18 | const search = (input: string) => |
| 19 | input.trim() |
| 20 | ? fuzzysort |
| 21 | .go(input, displayCommands, { |
| 22 | keys: [(cmd) => cmd.id, (cmd) => t(cmd.id)], |
| 23 | }) |
| 24 | .map((r) => r.obj) |
| 25 | : displayCommands; |
| 26 | |
| 27 | return ( |
| 28 | <SearchInput |