office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
24 lines • 1.15 kB
JavaScript
import * as tslib_1 from "tslib";
import * as React from 'react';
import { BaseComponent, classNamesFunction } from '../../Utilities';
var getClassNames = classNamesFunction();
/**
* {@docCategory DocumentCard}
*/
var DocumentCardLocationBase = /** @class */ (function (_super) {
tslib_1.__extends(DocumentCardLocationBase, _super);
function DocumentCardLocationBase() {
return _super !== null && _super.apply(this, arguments) || this;
}
DocumentCardLocationBase.prototype.render = function () {
var _a = this.props, location = _a.location, locationHref = _a.locationHref, ariaLabel = _a.ariaLabel, onClick = _a.onClick, styles = _a.styles, theme = _a.theme, className = _a.className;
this._classNames = getClassNames(styles, {
theme: theme,
className: className
});
return (React.createElement("a", { className: this._classNames.root, href: locationHref, onClick: onClick, "aria-label": ariaLabel }, location));
};
return DocumentCardLocationBase;
}(BaseComponent));
export { DocumentCardLocationBase };
//# sourceMappingURL=DocumentCardLocation.base.js.map