16 lines
322 B
TypeScript
16 lines
322 B
TypeScript
import type { TranslationObject } from "@homarr/translation";
|
|
|
|
import type { SearchGroup } from "./group";
|
|
|
|
export type SearchMode = {
|
|
modeKey: keyof TranslationObject["search"]["mode"];
|
|
character: string | undefined;
|
|
} & (
|
|
| {
|
|
groups: SearchGroup[];
|
|
}
|
|
| {
|
|
useGroups: () => SearchGroup[];
|
|
}
|
|
);
|