Files
homarr/packages/spotlight/src/lib/mode.ts
2024-12-06 19:07:27 +01:00

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[];
}
);