({control})
| 891 | } |
| 892 | |
| 893 | function PropContextualHelp({control}) { |
| 894 | if (!control.description) { |
| 895 | return null; |
| 896 | } |
| 897 | |
| 898 | return ( |
| 899 | <ContextualHelp variant="info" size="XS"> |
| 900 | <Heading>{control.name}</Heading> |
| 901 | <Content>{control.description}</Content> |
| 902 | <Footer> |
| 903 | <code className={style({font: 'code-xs'})}>{control.valueType}</code> |
| 904 | </Footer> |
| 905 | </ContextualHelp> |
| 906 | ); |
| 907 | } |
| 908 | |
| 909 | function NumberControl({control, value, onChange}: ControlProps) { |
| 910 | if (control.options?.control === 'slider') { |
nothing calls this directly
no outgoing calls
no test coverage detected