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