ModularItemMapOptionToButtonDefinition
Callable
Parameters
option: ModularItemOption
The option to draw a button for
module: ModularItemModule
A reference to the option's parent module
data: ModularItemData
The modular item's data
currentOptionIndex: number
The currently selected option index for the module
Returns ModularItemButtonDefinition
- A button definition array representing the provided option
Maps a modular item option to a button definition for rendering the option's button.