{
event.preventDefault();
event.currentTarget.querySelector("input")?.focus({ preventScroll: true });
}}
>
›
{!hasCommands && (
No commands found
)}
{items.map((item, index) => {
if (item.type === "section") {
itemRefs.current[index] = null;
return (
{item.label}
);
}
const { command } = item;
const path = getCategoryPath(command.categoryId);
const categoryLabel = path
.filter(cat => cat.label && cat.id !== "quick-actions")
.map(cat => cat.label)
.join(" / ");
return (
);
})}