"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const posthog_js_1 = __importDefault(require("posthog-js"));
const SHOULD_CAPTURE_EVENT = process.env.REACT_APP_STAGE === 'production';
const captureEvent = (event, properties) => {
    if (SHOULD_CAPTURE_EVENT) {
        posthog_js_1.default.capture(event, properties);
    }
};
const setPeople = (properties) => {
    if (SHOULD_CAPTURE_EVENT) {
        posthog_js_1.default.people.set(properties);
    }
};
exports.default = {
    captureEvent,
    SHOULD_CAPTURE_EVENT,
    setPeople,
};
//# sourceMappingURL=analytics.js.map