"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ValueHeightConsumer = void 0;
var react_1 = __importDefault(require("react"));
var SyncedValueHeightsContext_1 = require("../../../contexts/SyncedValueHeightsContext");
var ValueHeightConsumer = function (_a) {
    var uri = _a.uri, children = _a.children;
    var getHeight = (0, SyncedValueHeightsContext_1.useSyncedValueHeights)().getHeight;
    var height = getHeight(uri);
    return react_1.default.createElement("div", { style: height ? { minHeight: height } : undefined }, children);
};
exports.ValueHeightConsumer = ValueHeightConsumer;
