office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
18 lines • 1.14 kB
JavaScript
define(["require", "exports", "tslib", "react", "../../Utilities", "./DocumentCard.scss"], function (require, exports, tslib_1, React, Utilities_1, stylesImport) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var styles = stylesImport;
var DocumentCardLocation = /** @class */ (function (_super) {
tslib_1.__extends(DocumentCardLocation, _super);
function DocumentCardLocation() {
return _super !== null && _super.apply(this, arguments) || this;
}
DocumentCardLocation.prototype.render = function () {
var _a = this.props, location = _a.location, locationHref = _a.locationHref, ariaLabel = _a.ariaLabel, onClick = _a.onClick;
return (React.createElement("a", { className: Utilities_1.css('ms-DocumentCardLocation', styles.location), href: locationHref, onClick: onClick, "aria-label": ariaLabel }, location));
};
return DocumentCardLocation;
}(Utilities_1.BaseComponent));
exports.DocumentCardLocation = DocumentCardLocation;
});
//# sourceMappingURL=DocumentCardLocation.js.map