refactor: getGroups

This commit is contained in:
Ibrahima G. Coulibaly
2025-07-10 16:04:55 +01:00
parent 9045eb1bab
commit 425102415a
5 changed files with 194 additions and 178 deletions

View File

@@ -46,6 +46,9 @@ interface ToolContentProps<Options, Input> extends ToolComponentProps {
setFieldValue: (fieldName: string, value: any) => void
) => ReactNode;
initialValues: Options;
/**
* should return non-empty array or null
*/
getGroups: GetGroupsType<Options> | null;
compute: (optionsValues: Options, input: Input) => void;
toolInfo?: {