@atlaskit/avatar
Version:
An avatar is a visual representation of a user or entity.
16 lines (15 loc) • 389 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var getCustomElement = function getCustomElement(isDisabled, href, onClick, ariaHasPopup) {
if (href && !isDisabled) {
return 'a';
}
if (onClick || isDisabled || ariaHasPopup) {
return 'button';
}
return 'span';
};
var _default = exports.default = getCustomElement;