()
| 45 | ]; |
| 46 | |
| 47 | export function CommandExample() { |
| 48 | return ( |
| 49 | <Command defaultValue=""> |
| 50 | <CommandInput placeholder="Type a command..." /> |
| 51 | <CommandList> |
| 52 | <CommandEmpty>No results found.</CommandEmpty> |
| 53 | <CommandGroup heading="Suggestions"> |
| 54 | {suggestionCommands.map((command) => ( |
| 55 | <CommandItem key={command.value} value={command.value}> |
| 56 | {command.symbol} |
| 57 | </CommandItem> |
| 58 | ))} |
| 59 | </CommandGroup> |
| 60 | <CommandSeparator /> |
| 61 | <CommandGroup heading="Settings"> |
| 62 | {settingCommands.map((command) => ( |
| 63 | <CommandItem key={command.value} value={command.value}> |
| 64 | {command.symbol} |
| 65 | <CommandShortcut>{command.shortcut}</CommandShortcut> |
| 66 | </CommandItem> |
| 67 | ))} |
| 68 | </CommandGroup> |
| 69 | </CommandList> |
| 70 | </Command> |
| 71 | ); |
| 72 | } |
nothing calls this directly
no outgoing calls
no test coverage detected