(api: TuiPluginApi, name: string)
| 156 | } |
| 157 | |
| 158 | function commandShortcut(api: TuiPluginApi, name: string) { |
| 159 | return useKeymapSelector((keymap) => |
| 160 | api.keys.formatSequence( |
| 161 | keymap.getCommandBindings({ visibility: "registered", commands: [name] }).get(name)?.[0]?.sequence, |
| 162 | ), |
| 163 | ) |
| 164 | } |
| 165 | |
| 166 | function layout(value: unknown): Layout { |
| 167 | if (value === "overlay") return "overlay" |
no test coverage detected