import CommandPalette from 'react-command-palette' ; import React from 'react' ; import { commandPaletteRef , commands } from './run' ; import oneLightTheme from './theme/one-light.module.less' ; export default function Commands ( ) { return ( < CommandPalette ref = { commandPaletteRef } commands = { commands } trigger = { < span > < /span>} resetInputOnClose alwaysRenderCommands theme={oneLightTheme} options={{ keys: ['name', 'key'] }} placeholder='淦点啥'/ > ) ; }