"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var react_1 = require("react");
var use_subscription_1 = require("use-subscription");
function useProperty(property) {
    return use_subscription_1.useSubscription(react_1.useMemo(function () { return ({
        getCurrentValue: property.get.bind(property),
        subscribe: property.subscribe.bind(property),
    }); }, [property]));
}
exports.useProperty = useProperty;
//# sourceMappingURL=useProperty.js.map