({control, value, onChange}: ControlProps)
| 773 | } |
| 774 | |
| 775 | function BooleanControl({control, value, onChange}: ControlProps) { |
| 776 | return ( |
| 777 | <Wrapper control={control}> |
| 778 | <div |
| 779 | className={style({ |
| 780 | display: {default: 'flex', lg: 'contents'}, |
| 781 | minHeight: 32, |
| 782 | alignItems: 'center' |
| 783 | })}> |
| 784 | <Switch isSelected={value || false} onChange={onChange} aria-label={control.name} /> |
| 785 | </div> |
| 786 | </Wrapper> |
| 787 | ); |
| 788 | } |
| 789 | |
| 790 | const controlWidth = {default: 'full', sm: 130} as const; |
| 791 |
nothing calls this directly
no outgoing calls
no test coverage detected