/** * The ⌘K menu: find a chat by its title, or run any action, from one field. * * It opens instantly from what the app already knows (chats the sidebar has * loaded and the chats opened recently) and merges the server's title search as * it arrives. Chats in the person's other workspaces show too, tagged with * their workspace, and so do workspaces to switch to. Tab on a chat shows that * chat's actions; the chords of chat actions work on the highlighted chat * while the menu is open. */ import { type RefObject } from "react"; export default function CommandMenu(props: { open: boolean; /** Opens listing workspaces to switch to. */ pickWorkspace: boolean; onOpenChange: (open: boolean) => void; /** Where focus goes back to after a plain close. */ returnFocus: RefObject; }): import("react").JSX.Element | null;