{"size": 1327, "ext": "js", "max_stars_repo_path": "packages/elements/reactions/dist/cjs/containers/ReactionsPickerContainer.js", "max_stars_repo_name": "rholang/archive-old", "max_stars_repo_stars_event_min_datetime": "2020-04-24T13:28:17.000Z", "max_stars_repo_stars_event_max_datetime": "2020-04-24T13:28:17.000Z", "max_issues_repo_path": "packages/elements/reactions/dist/cjs/containers/ReactionsPickerContainer.js", "max_issues_repo_name": "rholang/archive-old", "max_issues_repo_issues_event_min_datetime": "2022-03-02T07:06:35.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-02T07:06:35.000Z", "max_forks_repo_path": "packages/elements/reactions/dist/cjs/containers/ReactionsPickerContainer.js", "max_forks_repo_name": "rholang/archive-old", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 53.08, "max_line_length": 156, "alphanum_fraction": 0.7053504145}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = tslib_1.__importStar(require("react"));
var ReactionPicker_1 = require("../components/ReactionPicker");
var ReactionConsumer_1 = require("../reaction-store/ReactionConsumer");
var ReactionPickerContainer = /** @class */ (function (_super) {
    tslib_1.__extends(ReactionPickerContainer, _super);
    function ReactionPickerContainer() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.renderChild = function (props) { return (React.createElement(ReactionPicker_1.ReactionPicker, tslib_1.__assign({}, _this.props, props))); };
        _this.actionsMapper = function (actions) { return ({
            onSelection: function (emojiId) {
                actions.addReaction(_this.props.containerAri, _this.props.ari, emojiId);
            },
        }); };
        return _this;
    }
    ReactionPickerContainer.prototype.render = function () {
        return (React.createElement(ReactionConsumer_1.ReactionConsumer, { store: this.props.store, actionsMapper: this.actionsMapper }, this.renderChild));
    };
    return ReactionPickerContainer;
}(React.PureComponent));
exports.default = ReactionPickerContainer;
//# sourceMappingURL=ReactionsPickerContainer.js.map