({ loading, loadingText, children, disabled, ...props })
| 8 | } |
| 9 | |
| 10 | export const LoadingButton: React.FC<LoadingButtonProps> = ({ loading, loadingText, children, disabled, ...props }) => { |
| 11 | return ( |
| 12 | <Button {...props} disabled={disabled || loading} startIcon={loading ? <CircularProgress size={16} /> : props.startIcon}> |
| 13 | {loading && loadingText ? loadingText : children} |
| 14 | </Button> |
| 15 | ); |
| 16 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected