@guardian/threads
Version:
26 lines • 982 B
JavaScript
import { __extends } from "tslib";
import React from 'react';
import { Chip } from './abstract/Chip';
// The usability of this isn't very important since it should never appear if the client and server are in sync.
var UnknownChip = /** @class */ (function (_super) {
__extends(UnknownChip, _super);
function UnknownChip() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.focus = function () {
console.error('cannot focus unknown chip');
};
_this.select = function () {
console.error('cannot select unknown chip');
};
_this.onKeyDown = function () {
console.error('cannot keydown on unknown chip');
};
return _this;
}
UnknownChip.prototype.render = function () {
return React.createElement("div", null, "Unknown Chip Type");
};
return UnknownChip;
}(Chip));
export { UnknownChip };
//# sourceMappingURL=UnknownChip.js.map