-
-
- {DIALOG_TITLE}
- {DIALOG_DESCRIPTION}
-
- setQueryLive(e.currentTarget.value)}
- className={clsx(
- 'w-full min-w-0!',
- 'focus:ring-0',
- isPlaceholderVisible || isLoading && 'pr-8!',
- 'border-gray-200! dark:border-gray-800!',
- 'focus:border-gray-200 dark:focus:border-gray-800',
- 'placeholder:text-gray-400/80',
- 'dark:placeholder:text-gray-700',
- 'focus:outline-hidden',
- isPending && 'opacity-20',
- )}
- placeholder="Search photos, views, settings ..."
- disabled={isPending}
- />
- {isLoading && !isPending &&
-
-
- }
-
-
+ {DIALOG_TITLE}
+ {DIALOG_DESCRIPTION}
+
+
+ setQueryLive(e.currentTarget.value)}
+ className={clsx(
+ 'w-full min-w-0!',
+ 'focus:ring-0',
+ isPlaceholderVisible || isLoading && 'pr-8!',
+ 'border-gray-200! dark:border-gray-800!',
+ 'focus:border-gray-200 dark:focus:border-gray-800',
+ 'placeholder:text-gray-400/80',
+ 'dark:placeholder:text-gray-700',
+ 'focus:outline-hidden',
+ isPending && 'opacity-20',
+ )}
+ placeholder="Search photos, views, settings ..."
+ disabled={isPending}
+ />
+
+ {isLoading && !isPending &&
+
-
- {isLoading ? 'Searching ...' : 'No results found'}
-
+
+ }
+
+
+ {isLoading ? 'Searching ...' : 'No results found'}
+
+
{queriedSections
.concat(categorySections)
.concat(sectionPages)
@@ -555,7 +567,7 @@ export default function CommandKClient({
key={heading}
heading={
{accessory &&
@@ -574,6 +586,7 @@ export default function CommandKClient({
>
{items.map(({
label,
+ explicitKey,
keywords,
accessory,
annotation,
@@ -581,7 +594,7 @@ export default function CommandKClient({
path,
action,
}) => {
- const key = `${heading} ${label}`;
+ const key = `${heading} ${explicitKey ?? label}`;
return
;
})}
)}
- {footer && !queryLive &&
-
- {footer}
-
}
-
-
+
+ {footer && !queryLive &&
+
+ {footer}
+
}
+
);