import { SLASH_COMMANDS } from "../lib/slashCommands"; interface CommandDropdownProps { query: string; selectedIndex: number; onSelect: (command: string) => void; } export function CommandDropdown({ query, selectedIndex, onSelect }: CommandDropdownProps) { const q = query.toLowerCase(); const filtered = SLASH_COMMANDS.filter((c) => c.name.startsWith(q)).slice(0, 8); if (filtered.length === 0) return null; return (
COMMANDS
{filtered.map((cmd, i) => ( ))}
); }