(item ? item.label : "")}
- onSelect={(item: QuickSearchAction) => {
- setVisible(false);
- item.onClick();
- }}
- onInputValueChange={value =>
- change({
- target: {
- name: "query",
- value
- }
- })
- }
- defaultHighlightedIndex={0}
- >
- {({ getInputProps, getItemProps, highlightedIndex }) => (
-
-
- {hasViews(actions) && (
-
- )}
- {hasActions(actions) && (
-
- )}
- {hasCustomers(actions) && (
-
- )}
- {hasCatalog(actions) && (
-
- )}
-
- )}
-
-