UNPKG

@inyourarea/aard-client-js

Version:

A JavaScript tracking library for the Aard Platform at InYourArea.co.uk. Record and track activity across the different services of the platform.

28 lines 1.2 kB
var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); import React, { Component } from 'react'; import AardContext from './context'; var AardProvider = /** @class */ (function (_super) { __extends(AardProvider, _super); function AardProvider() { return _super !== null && _super.apply(this, arguments) || this; } AardProvider.prototype.render = function () { var _a = this.props, recorder = _a.recorder, children = _a.children; return (React.createElement(AardContext.Provider, { value: recorder }, children)); }; return AardProvider; }(Component)); export default AardProvider; //# sourceMappingURL=provider.js.map