"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useLdmkFeatureFlagInitiallyEnabled = void 0;
const react_1 = require("react");
const featureFlags_1 = require("../featureFlags");
/** Only returns the value that the flag has at first render */
const useLdmkFeatureFlagInitiallyEnabled = () => {
    const flagEnabled = !!(0, featureFlags_1.useFeature)("ldmkTransport")?.enabled;
    const [isEnabled] = (0, react_1.useState)(flagEnabled);
    return isEnabled;
};
exports.useLdmkFeatureFlagInitiallyEnabled = useLdmkFeatureFlagInitiallyEnabled;
//# sourceMappingURL=useLdmkFeatureFlagInitiallyEnabled.js.map