office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
18 lines • 960 B
JavaScript
import * as tslib_1 from "tslib";
import * as React from 'react';
import { BaseComponent, css } from '../../Utilities';
import * as stylesImport from './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: css('ms-DocumentCardLocation', styles.location), href: locationHref, onClick: onClick, "aria-label": ariaLabel }, location));
};
return DocumentCardLocation;
}(BaseComponent));
export { DocumentCardLocation };
//# sourceMappingURL=DocumentCardLocation.js.map