feat: add context specific search and actions (#1570)
This commit is contained in:
1 parent
aaa3e7ce0c
commit
c840ff85bc
18 files changed
+517
-183
No files matched your search
@@ -34,6 +34,10 @@ export const SpotlightGroupActions = <TOption extends Record<string, unknown>>({
|
||||
});
|
||||
|
||||
if (Array.isArray(options)) {
|
||||
if (options.length === 0) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const filteredOptions = options
|
||||
.filter((option) => ("filter" in group ? group.filter(query, option) : false))
|
||||
.sort((optionA, optionB) => {
|
||||
|
||||
Reference in new issue
Block a user