UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

20 lines 1.07 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var React = require("react"); var Utilities_1 = require("../../Utilities"); var stylesImport = require("./DocumentCard.scss"); 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