MenuGenerator type
Either an array of menu options or a function that generates an array of menu options for FieldDropdown or its descendants.
Signature:
export type MenuGenerator = MenuOption[] | MenuGeneratorFunction;
References: MenuOption, MenuGeneratorFunction