( Component: ComponentType<LabelProps> )
| 706 | }; |
| 707 | |
| 708 | const withContextToLabelProps = ( |
| 709 | Component: ComponentType<LabelProps> |
| 710 | ): ComponentType<OwnPropsOfLabel> => |
| 711 | function WithContextToLabelProps({ |
| 712 | ctx, |
| 713 | props, |
| 714 | }: JsonFormsStateContext & LabelProps & OwnPropsOfLabel) { |
| 715 | const stateProps = ctxToLabelProps(ctx, props); |
| 716 | return <Component {...props} {...stateProps} />; |
| 717 | }; |
| 718 | |
| 719 | // -- |
| 720 |
no test coverage detected
searching dependent graphs…