(props)
| 26429 | var IconBase = /** @class */ function(_super) { |
| 26430 | (0, _tslib.__extends)(IconBase1, _super); |
| 26431 | function IconBase1(props) { |
| 26432 | var _this = _super.call(this, props) || this; |
| 26433 | _this._onImageLoadingStateChange = function(state) { |
| 26434 | if (_this.props.imageProps && _this.props.imageProps.onLoadingStateChange) _this.props.imageProps.onLoadingStateChange(state); |
| 26435 | if (state === (0, _imageTypes.ImageLoadState).error) _this.setState({ |
| 26436 | imageLoadError: true |
| 26437 | }); |
| 26438 | }; |
| 26439 | _this.state = { |
| 26440 | imageLoadError: false |
| 26441 | }; |
| 26442 | return _this; |
| 26443 | } |
| 26444 | IconBase1.prototype.render = function() { |
| 26445 | var _a = this.props, children = _a.children, className = _a.className, styles = _a.styles, iconName = _a.iconName, imageErrorAs = _a.imageErrorAs, theme = _a.theme; |
| 26446 | var isPlaceholder = typeof iconName === "string" && iconName.length === 0; |
nothing calls this directly
no outgoing calls
no test coverage detected