parent
e5d7014b9f
commit
17657388af
2 changed files with 34 additions and 20 deletions
@ -1,16 +1,21 @@ |
||||
type CreatableComponent = Parameters<typeof import('react').createElement>[0]; |
||||
|
||||
type IconButtonPresetMapToStateIcon = 'edit' | 'visibility'; |
||||
type IconButtonPresetMapToStateIconBundle = 'edit' | 'visibility'; |
||||
|
||||
type IconButtonMapToStateIcon = Record<string, CreatableComponent>; |
||||
type IconButtonStateIconBundle = { |
||||
iconType: CreatableComponent; |
||||
iconProps?: import('@mui/material').SvgIconProps; |
||||
}; |
||||
|
||||
type IconButtonMapToStateIconBundle = Record<string, IconButtonStateIconBundle>; |
||||
|
||||
type IconButtonVariant = 'contained' | 'normal'; |
||||
|
||||
type IconButtonOptionalProps = { |
||||
defaultIcon?: CreatableComponent; |
||||
iconProps?: import('@mui/material').SvgIconProps; |
||||
mapPreset?: IconButtonPresetMapToStateIcon; |
||||
mapToIcon?: IconButtonMapToStateIcon; |
||||
mapPreset?: IconButtonPresetMapToStateIconBundle; |
||||
mapToIcon?: IconButtonMapToStateIconBundle; |
||||
state?: string; |
||||
variant?: IconButtonVariant; |
||||
}; |
||||
|
Loading…
Reference in new issue