import { MENU_ROW, MENU_ROW_OFF, MENU_ROW_ON, MENU_SURFACE } from "@chopin/editor"; import { referenceOptionId } from "./reference-picker"; import type { ChatCommand } from "./commands"; /** The document's `/` menu, anchored above the Chat composer. */ export function CommandPicker( { active, id, onActive, onSelect, options, }: { active: number; id: string; onActive: (index: number) => void; onSelect: (command: ChatCommand) => void; options: readonly ChatCommand[]; }, ) { return (