/** * The ⌘K menu: find a chat, a Site or a meeting, or run any action, from one * field. * * It opens instantly from what the app already knows (chats and Sites the * sidebar has loaded and the chats opened recently) and merges the server's * title searches as they arrive. 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. Meetings are found by title, by who spoke, by words * said in them and by when they happened. * * Sub-agent chats (ones another chat started) are far more numerous than the * person's own, so they list only where they were asked for: the ones opened * recently join Recent chats, pinned ones count as the person's own, and a * search lists a few matching ones in a group of their own, after the chats. * Each says which chat it belongs to. */ 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;